From 270205640d9e230c88aee18d50876519db50e4d1 Mon Sep 17 00:00:00 2001
From: Simon Bjurek <simbj106@student.liu.se>
Date: Tue, 11 Feb 2025 10:41:35 +0000
Subject: [PATCH] Ignored unneccecary warnings in tests and updated LICENCE
 file

---
 LICENSE                      | 2 +-
 test/test_core_operations.py | 9 +++++----
 test/test_simulation_gui.py  | 2 ++
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/LICENSE b/LICENSE
index 3cc6b123..461f0905 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
 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
diff --git a/test/test_core_operations.py b/test/test_core_operations.py
index 6ed00f45..1a5f367b 100644
--- a/test/test_core_operations.py
+++ b/test/test_core_operations.py
@@ -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])
diff --git a/test/test_simulation_gui.py b/test/test_simulation_gui.py
index cd7599e6..177fb11f 100644
--- a/test/test_simulation_gui.py
+++ b/test/test_simulation_gui.py
@@ -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],
-- 
GitLab