Example #1
0
def test_tags_remote(remote, expected):
    job = Job(**prepare_job_data('1', remote=remote))
    tags = job.tags()

    assert ('REMOTE' in tags) is expected
Example #2
0
def test_tags_employment_types(employment_types, expected):
    job = Job(**prepare_job_data('1', employment_types=employment_types))
    tags = set(job.tags())

    assert expected == tags
Example #3
0
def test_tags_new(posted_at, expected):
    job = Job(**prepare_job_data('1', posted_at=posted_at))
    tags = job.tags(today=date(2020, 9, 28))

    assert ('NEW' in tags) is expected