Skip to content

Commit

Permalink
Fix JobApplicationState import paths in tests
Browse files Browse the repository at this point in the history
The enum comes from the enums module, not models.
  • Loading branch information
francoisfreitag committed Sep 12, 2024
1 parent 8d92bfd commit adaf51e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/job_applications/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Params:
job_seeker=factory.SubFactory(JobSeekerFactory, with_mocked_address=True)
)
with_approval = factory.Trait(
state=models.JobApplicationState.ACCEPTED,
state=JobApplicationState.ACCEPTED,
approval=factory.SubFactory(
ApprovalFactory,
user=factory.SelfAttribute("..job_seeker"),
Expand Down Expand Up @@ -216,7 +216,7 @@ class JobApplicationSentByPrescriberPoleEmploiFactory(JobApplicationSentByPrescr
class JobApplicationWithoutApprovalFactory(JobApplicationSentByPrescriberFactory):
"""Generates a JobApplication() object without an Approval() object."""

state = models.JobApplicationState.ACCEPTED
state = JobApplicationState.ACCEPTED
hiring_without_approval = True


Expand Down
2 changes: 1 addition & 1 deletion tests/job_applications/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

def test_create_employee_record(admin_client):
job_application = factories.JobApplicationFactory(
state=models.JobApplicationState.ACCEPTED,
state=JobApplicationState.ACCEPTED,
with_approval=True,
)

Expand Down

0 comments on commit adaf51e

Please sign in to comment.