Example #1
0
def test_recruiters_can_post_jobs():
    jobs = Jobs()

    recruiter = create_recruiter_named("Adam", "Recruiter")

    job1 = create_job_for_recruiter(JreqJob, recruiter, "job1")
    job2 = create_job_for_recruiter(AtsJob, recruiter, "job2")

    jobs.add([job1, job2])

    display = jobs.display()

    assert (display[0] == "job1" and display[1] == "job2")
def test_recruiters_can_post_jobs():
    jobs = Jobs()

    recruiter = create_recruiter_named("Adam", "Recruiter")
    
    job1 = create_job_for_recruiter(JreqJob, recruiter, "job1")
    job2 = create_job_for_recruiter(AtsJob, recruiter, "job2")

    jobs.add([job1, job2])

    display = jobs.display()

    assert(display[0] == "job1" and display[1] == "job2")
Example #3
0
def test_recruiters_should_be_able_to_see_a_list_of_jobs_they_have_posted():
    jobs = Jobs()

    recruiter1 = create_recruiter_named("Adam", "Recruiter")
    recruiter2 = create_recruiter_named("Beth", "Wrangler")

    job1 = create_job_for_recruiter(JreqJob, recruiter1, "job1")
    job2 = create_job_for_recruiter(AtsJob, recruiter1, "job2")
    job3 = create_job_for_recruiter(AtsJob, recruiter2, "job3")
    job4 = create_job_for_recruiter(AtsJob, recruiter2, "job4")

    jobs.add([job1, job2, job3, job4])

    recruiter1_jobs = jobs.by_recruiter(recruiter1)
    display = recruiter1_jobs.display()

    assert (display[0] == "job1" and display[1] == "job2")
def test_recruiters_should_be_able_to_see_a_list_of_jobs_they_have_posted():
    jobs = Jobs()

    recruiter1 = create_recruiter_named("Adam", "Recruiter")
    recruiter2 = create_recruiter_named("Beth", "Wrangler")
    
    job1 = create_job_for_recruiter(JreqJob, recruiter1, "job1")
    job2 = create_job_for_recruiter(AtsJob, recruiter1, "job2")
    job3 = create_job_for_recruiter(AtsJob, recruiter2, "job3")
    job4 = create_job_for_recruiter(AtsJob, recruiter2, "job4")

    jobs.add([job1, job2, job3, job4])

    recruiter1_jobs = jobs.by_recruiter(recruiter1)
    display = recruiter1_jobs.display()

    assert(display[0] == "job1" and display[1] == "job2")