@@ -21,21 +21,13 @@ def setUp(self):
2121 def tearDown (self ):
2222 self .directory .cleanup ()
2323
24- def test_input_with_json_ending_from_example_dir (self ):
25- runner = CliRunner ()
26- result = runner .invoke (run , ['--example' , 'ghz_346.json' ])
27- assert result .exit_code == 0
28- assert "{'|000000>': True, '|111000>': True, '|222000>': True, '|333000>': True}" in result .output
29- assert os .path .exists ('output/ghz_346/ghz_346/best.json' )
30- assert os .path .exists ('output/ghz_346/ghz_346/summary.json' )
31-
3224 def test_input_without_json_ending_from_example_dir (self ):
3325 runner = CliRunner ()
3426 result = runner .invoke (run , ['--example' , 'ghz_346' ])
3527 assert result .exit_code == 0
3628 assert "{'|000000>': True, '|111000>': True, '|222000>': True, '|333000>': True}" in result .output
37- assert os .path .exists ('output/ghz_346 /ghz_346/best.json' )
38- assert os .path .exists ('output/ghz_346 /ghz_346/summary.json' )
29+ assert os .path .exists ('output/config_ghz_346 /ghz_346/best.json' )
30+ assert os .path .exists ('output/config_ghz_346 /ghz_346/summary.json' )
3931
4032 def test_input_with_json_ending_from_custom_dir (self ):
4133 input_file = Path (__file__ ).parent / 'fixtures' / 'ghz_346.json'
@@ -69,21 +61,22 @@ def test_bell_state(self):
6961
7062 def test_lossfunc_ent (self ):
7163 runner = CliRunner ()
72- result = runner .invoke (run , ['--example' , 'conc_4-3 ' ])
64+ result = runner .invoke (run , ['--example' , 'k2maximal4qubitsREAL ' ])
7365 assert result .exit_code == 0
74- assert os .path .exists ('output/conc_4-3 /try/best.json' )
75- assert os .path .exists ('output/conc_4-3 /try/summary.json' )
66+ assert os .path .exists ('output/config_k2maximal4qubitreal /try/best.json' )
67+ assert os .path .exists ('output/config_k2maximal4qubitreal /try/summary.json' )
7668
77- def test_input_with_json_ending_from_example_director_removeConnections (self ):
69+ def test_input_without_json_ending_from_example_director_removeConnections (self ):
7870 runner = CliRunner ()
79- result = runner .invoke (run , ['--example' , 'cnot_22.json ' ])
71+ result = runner .invoke (run , ['--example' , 'toffoli_post ' ])
8072 assert result .exit_code == 0
8173
82- def test_input_with_json_ending_from_example_director_startinggraph (self ):
74+ def test_input_without_json_ending_from_example_director_startinggraph (self ):
8375 runner = CliRunner ()
84- result = runner .invoke (run , ['--example' , 'spin3plus_3.json ' ])
76+ result = runner .invoke (run , ['--example' , 'nbody3 ' ])
8577 assert result .exit_code == 0
8678
79+ @unittest .skip #does not exist anymore
8780 def test_input_with_json_ending_from_example1_director (self ):
8881 runner = CliRunner ()
8982 result = runner .invoke (run , ['--example' , 'werner.json' ])
0 commit comments