Skip to content
Snippets Groups Projects
Commit 27020564 authored by Simon Bjurek's avatar Simon Bjurek
Browse files

Ignored unneccecary warnings in tests and updated LICENCE file

parent 047b6e91
No related branches found
No related tags found
1 merge request!467Ignored unneccecary warnings in tests and updated LICENCE file
Pipeline #155823 passed
MIT License
Copyright (c) 2020-2022, Oscar Gustafsson et al
Copyright (c) 2020-2025, Oscar Gustafsson et al
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......
......@@ -413,9 +413,10 @@ class TestSink:
bfly = Butterfly()
sfg = bfly.to_sfg()
s = Sink()
sfg1 = sfg.replace_operation(s, "out0")
with pytest.warns(UserWarning, match="Output port out0 has been removed"):
sfg1 = sfg.replace_operation(s, "out0")
assert sfg1.output_count == 1
assert sfg1.input_count == 2
assert sfg1.output_count == 1
assert sfg1.input_count == 2
assert sfg.evaluate_output(1, [0, 1]) == sfg1.evaluate_output(0, [0, 1])
assert sfg.evaluate_output(1, [0, 1]) == sfg1.evaluate_output(0, [0, 1])
......@@ -7,6 +7,7 @@ except ImportError:
pytestmark = pytest.mark.skip("Qt not setup")
@pytest.mark.filterwarnings("ignore:No artists with labels found to put in legend")
def test_start(qtbot):
widget = PlotWindow({})
qtbot.addWidget(widget)
......@@ -28,6 +29,7 @@ def test_start_with_data(qtbot):
assert len(widget._plot_axes.lines) == 1
@pytest.mark.filterwarnings("ignore:No artists with labels found to put in legend")
def test_click_buttons(qtbot):
sim_res = {
'0': [0.5, 0.5, 0, 0],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment