Skip to content

Commit 5b732c8

Browse files
committed
Fixed tests. Updated CHANGELOG.rst
1 parent 9785e09 commit 5b732c8

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ The format is inspired by `Keep a Changelog <http://keepachangelog.com/en/0.3.0/
2020

2121
* **Version 1.0.0 release**: a minimal app suitable for educational use and not requiring execution from the command line interface.
2222

23+
0.3.2 - 2024-03-06
24+
------------------
25+
26+
Fixed:
27+
^^^^^^
28+
29+
* Broken tests and Tk matplotlib backend. Should now work with latest Python
30+
and requirements.
31+
2332
0.3.1 - 2018-05-28
2433
------------------
2534

tests/GUI/test_history.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,31 @@ def vars_default():
2828

2929

3030
@pytest.fixture()
31-
def vars_1():
31+
def vars_1(vars_default):
3232
"""Return the modified vars for the first custom subspectrum, where
3333
#C has been changed to 2."""
34-
_vars = vars_default()
34+
_vars = vars_default.copy()
3535
_vars['#C'] = 2
3636
return _vars
3737

38-
3938
@pytest.fixture()
40-
def vars_2():
39+
def vars_2(vars_default):
4140
"""Return the modified vars for the second custom subspectrum, where
4241
#B has been changed to 0, and Vcentr to 1.0."""
43-
_vars = vars_default()
42+
_vars = vars_default.copy()
4443
_vars['#B'] = 0
4544
_vars['Vcentr'] = 1.0
4645
return _vars
4746

4847

4948
@pytest.fixture()
50-
def vars_3():
49+
def vars_3(vars_default):
5150
"""Return modified vars for the third custom subspectrum, where #D has
5251
been changed to 3.
5352
54-
Created for ss3 and update_all_spectra testing."""
55-
_vars = vars_default()
53+
Created for ss3 and update_all_spectra testing.
54+
"""
55+
_vars = vars_default.copy()
5656
_vars['#D'] = 3
5757
return _vars
5858

0 commit comments

Comments
 (0)