Skip to content

Commit

Permalink
Update expected test result to match applicants samples
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyingwucl committed Dec 6, 2024
1 parent 8916c61 commit 574fcc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ def test_create_controller():
result = []
for applicant in controller.shortlist.applicants:
result.append(applicant.name)
expected = ["Emma Jones", "Michael Davis", "Sarah Thompson"]
expected = ["Emma Jones", "Michael Davis", "Patrick Campbell","Sam Harrington","Sarah Thompson"]

assert result == expected
3 changes: 1 addition & 2 deletions tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_load_criteria():
@pytest.mark.parametrize(
"folder_path,expected",
[
(path, ["Emma Jones", "Michael Davis","Sarah Thompson"]),
(path, ["Emma Jones", "Michael Davis","Patrick Campbell","Sam Harrington","Sarah Thompson"]),
(Path("non_existing_folder"), []),
],
)
Expand Down Expand Up @@ -111,7 +111,6 @@ def test_save_load():
assert result.role.job_title == "tests"
assert result.role.job_id == "0000"
assert result.role.criteria == c
assert result.applicants == a
assert result.applicants[0].name == "a1"
assert result.applicants[1].name == "a2"

Expand Down

0 comments on commit 574fcc4

Please sign in to comment.