Skip to content

Commit 27f6745

Browse files
test: improve assert message for scoring and ignore meta.count
1 parent 569facc commit 27f6745

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

tests/test_job.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ def test_job_scoring_basic(hrflow_client):
149149
limit=5, # allows to bypass the bug with archived jobs
150150
)
151151
)
152-
assert model.code == http_codes.ok
153-
assert len(model.data.jobs) == len(model.data.predictions) == model.meta.count
152+
assert model.code == http_codes.ok, (
153+
"Maybe the job is not already indexed for the scoring. Please, try again later."
154+
)
155+
assert len(model.data.jobs) == len(model.data.predictions)
154156

155157

156158
@pytest.mark.job

tests/test_profile.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,10 @@ def test_profiles_scoring_basic(hrflow_client):
510510
limit=5, # allows to bypass the bug with archived profiles
511511
)
512512
)
513-
assert model.code == http_codes.ok
513+
assert model.code == http_codes.ok, (
514+
"Maybe the job is not already indexed for the scoring. Please, try again later."
515+
)
516+
assert len(model.data.profiles) == len(model.data.predictions)
514517

515518

516519
@pytest.mark.profile

0 commit comments

Comments
 (0)