forked from p15670423/monkey
Fix unit test in test_consts.py
This commit is contained in:
parent
37b7815e00
commit
dc129c017b
|
@ -5,8 +5,8 @@ import monkey_island.cc.server_utils.consts as consts
|
|||
|
||||
def test_default_server_config_file_path():
|
||||
if platform.system() == "Windows":
|
||||
server_file_path = consts.MONKEY_ISLAND_ABS_PATH + r"\cc\server_config.json"
|
||||
server_file_path = f"{consts.DEFAULT_DATA_DIR}\\{consts.SERVER_CONFIG_FILENAME}"
|
||||
else:
|
||||
server_file_path = consts.MONKEY_ISLAND_ABS_PATH + "/cc/server_config.json"
|
||||
server_file_path = f"{consts.DEFAULT_DATA_DIR}/{consts.SERVER_CONFIG_FILENAME}"
|
||||
|
||||
assert consts.DEFAULT_SERVER_CONFIG_PATH == server_file_path
|
||||
|
|
Loading…
Reference in New Issue