Skip to content

Commit

Permalink
Add test for command line conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Bachibouzouk committed May 15, 2024
1 parent c8d6854 commit 5ea07a1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_input_file_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ def test_convert_py_to_xlsx(self):
if old_user != new_user:
pytest.fail()

def test_convert_py_to_xlsx_command_line(self):
"""Convert the 3 example .py input files to xlsx and compare each appliance of each user"""
for i, j in enumerate(self.input_files_to_run):
old_user_list = load_py_usecase(j=j)
output_path = os.path.join("ramp", "test")
os.system(
f"ramp_convert -i {self.py_fnames[i]} -o {output_path} --suffix {self.file_suffix}"
)
new_user_list = load_xlsx_usecase(fname=self.xlsx_fnames[i])
for old_user, new_user in zip(old_user_list, new_user_list):
if old_user != new_user:
pytest.fail()


def test_define_appliance_window_directly_equivalent_to_use_windows_method():
user = User("test user", 1)
Expand Down

0 comments on commit 5ea07a1

Please sign in to comment.