@@ -16,7 +16,9 @@ def test_read_efg(game_path):
1616
1717
1818def test_read_efg_invalid ():
19- game_path = os .path .join ("tests" , "test_games" , "2x2x2_nfg_with_two_pure_one_mixed_eq.nfg" )
19+ game_path = os .path .join (
20+ "tests" , "test_games" , "2x2x2_nfg_from_local_max_cut_2_pure_1_mixed_eq.nfg"
21+ )
2022 with pytest .raises (ValueError ):
2123 gbt .read_efg (game_path )
2224
@@ -40,13 +42,17 @@ def test_read_agg(game_path):
4042
4143
4244def test_read_agg_invalid ():
43- game_path = os .path .join ("tests" , "test_games" , "2x2x2_nfg_with_two_pure_one_mixed_eq.nfg" )
45+ game_path = os .path .join (
46+ "tests" , "test_games" , "2x2x2_nfg_from_local_max_cut_2_pure_1_mixed_eq.nfg"
47+ )
4448 with pytest .raises (ValueError ):
4549 gbt .read_agg (game_path )
4650
4751
4852def test_read_gbt_invalid ():
49- game_path = os .path .join ("tests" , "test_games" , "2x2x2_nfg_with_two_pure_one_mixed_eq.nfg" )
53+ game_path = os .path .join (
54+ "tests" , "test_games" , "2x2x2_nfg_from_local_max_cut_2_pure_1_mixed_eq.nfg"
55+ )
5056 with pytest .raises (ValueError ):
5157 gbt .read_gbt (game_path )
5258
@@ -116,16 +122,18 @@ def test_read_write_efg():
116122def test_read_write_nfg ():
117123 nfg_game = create_2x2_zero_nfg ()
118124 serialized_nfg_game = nfg_game .to_nfg ()
119- deserialized_nfg_game = gbt .read_nfg (io .BytesIO (serialized_nfg_game .encode ()),
120- normalize_labels = False )
125+ deserialized_nfg_game = gbt .read_nfg (
126+ io .BytesIO (serialized_nfg_game .encode ()), normalize_labels = False
127+ )
121128 double_serialized_nfg_game = deserialized_nfg_game .to_nfg ()
122129 assert serialized_nfg_game == double_serialized_nfg_game
123130
124131
125132def test_read_write_nfg_normalize ():
126133 nfg_game = create_2x2_zero_nfg ()
127134 serialized_nfg_game = nfg_game .to_nfg ()
128- deserialized_nfg_game = gbt .read_nfg (io .BytesIO (serialized_nfg_game .encode ()),
129- normalize_labels = True )
135+ deserialized_nfg_game = gbt .read_nfg (
136+ io .BytesIO (serialized_nfg_game .encode ()), normalize_labels = True
137+ )
130138 double_serialized_nfg_game = deserialized_nfg_game .to_nfg ()
131139 assert serialized_nfg_game != double_serialized_nfg_game
0 commit comments