Skip to content

Commit

Permalink
Add test_ht and test_e_diagnosis
Browse files Browse the repository at this point in the history
  • Loading branch information
phamquiluan committed Jan 10, 2025
1 parent 45c7339 commit 90a24ee
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_rcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,19 @@ def test_rcd():

# Check if the script ran successfully
assert result.returncode == 0, f"Script failed with return code {result.returncode}\nOutput: {result.stdout}\nError: {result.stderr}"


def test_ht():
command = ["python", "main-ase.py", "--method", "ht", "--dataset", "online-boutique", "--test"]
result = subprocess.run(command, capture_output=True, text=True)

# Check if the script ran successfully
assert result.returncode == 0, f"Script failed with return code {result.returncode}\nOutput: {result.stdout}\nError: {result.stderr}"


def test_e_diagnosis():
command = ["python", "main-ase.py", "--method", "e_diagnosis", "--dataset", "online-boutique", "--test"]
result = subprocess.run(command, capture_output=True, text=True)

# Check if the script ran successfully
assert result.returncode == 0, f"Script failed with return code {result.returncode}\nOutput: {result.stdout}\nError: {result.stderr}"

0 comments on commit 90a24ee

Please sign in to comment.