4
4
5
5
from src .models .instrument import Instrument
6
6
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
8
8
from tests .unit_tests .lib .test_suite import TestSuite
9
9
10
10
@@ -19,13 +19,13 @@ def test_instantiating(self):
19
19
self .log .debug (f"Run time error: { e } " )
20
20
21
21
def test_add_instrument (self ):
22
- conf = TestConfiguration ( True )
22
+ conf = TestConfigurations . get_unit_test_configuration ( )
23
23
instrument = InstrumentPool .create_instrument (conf .get_instruments ()[0 ])
24
24
self .fail_if (not isinstance (instrument , Instrument ),
25
25
"The created instrument has the wrong class" )
26
26
27
27
def test_add_instrument_twice (self ):
28
- conf = TestConfiguration ( True )
28
+ conf = TestConfigurations . get_unit_test_configuration ( )
29
29
instrument1 = InstrumentPool .create_instrument (conf .get_instruments ()[0 ])
30
30
self .fail_if (not isinstance (instrument1 , Instrument ),
31
31
"The first created instrument has the wrong class" )
@@ -36,7 +36,7 @@ def test_add_instrument_twice(self):
36
36
"The instruments are not the same" )
37
37
38
38
def test_clear_instruments (self ):
39
- conf = TestConfiguration ( True )
39
+ conf = TestConfigurations . get_unit_test_configuration ( )
40
40
instrument1 = InstrumentPool .create_instrument (conf .get_instruments ()[0 ])
41
41
self .fail_if (not isinstance (instrument1 , Instrument ),
42
42
"The first created instrument has the wrong class" )
0 commit comments