Skip to content

Commit bceb47d

Browse files
committed
replaced old test config with new one
1 parent eace807 commit bceb47d

File tree

3 files changed

+4
-86
lines changed

3 files changed

+4
-86
lines changed

tests/test_environment/test_configuration.py

-44
This file was deleted.

tests/unit_tests/test_models/test_instrument_pool.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from src.models.instrument import Instrument
66
from src.models.instrument_pool import InstrumentPool
7-
from tests.test_environment.test_configuration import TestConfiguration
7+
from tests.test_environment.test_configurations import TestConfigurations
88
from tests.unit_tests.lib.test_suite import TestSuite
99

1010

@@ -19,13 +19,13 @@ def test_instantiating(self):
1919
self.log.debug(f"Run time error: {e}")
2020

2121
def test_add_instrument(self):
22-
conf = TestConfiguration(True)
22+
conf = TestConfigurations.get_unit_test_configuration()
2323
instrument = InstrumentPool.create_instrument(conf.get_instruments()[0])
2424
self.fail_if(not isinstance(instrument, Instrument),
2525
"The created instrument has the wrong class")
2626

2727
def test_add_instrument_twice(self):
28-
conf = TestConfiguration(True)
28+
conf = TestConfigurations.get_unit_test_configuration()
2929
instrument1 = InstrumentPool.create_instrument(conf.get_instruments()[0])
3030
self.fail_if(not isinstance(instrument1, Instrument),
3131
"The first created instrument has the wrong class")
@@ -36,7 +36,7 @@ def test_add_instrument_twice(self):
3636
"The instruments are not the same")
3737

3838
def test_clear_instruments(self):
39-
conf = TestConfiguration(True)
39+
conf = TestConfigurations.get_unit_test_configuration()
4040
instrument1 = InstrumentPool.create_instrument(conf.get_instruments()[0])
4141
self.fail_if(not isinstance(instrument1, Instrument),
4242
"The first created instrument has the wrong class")

tests/unit_tests/test_models/test_test_configuration.py

-38
This file was deleted.

0 commit comments

Comments
 (0)