Exemplo n.º 1
0
 def eventually_consistent_test():
     location_search_sample.run_sample(company_name)
     out, _ = capsys.readouterr()
     expected = ('.*locationFilters.*\n'
                 '.*locationFilters.*\n'
                 '.*locationFilters.*\n'
                 '.*locationFilters.*\n'
                 '.*locationFilters.*\n')
     assert re.search(expected, out, re.DOTALL)
     expected = ('.*matchingJobs.*\n'
                 '.*matchingJobs.*\n'
                 '.*matchingJobs.*\n'
                 '.*matchingJobs.*\n'
                 '.*matchingJobs.*\n')
     assert re.search(expected, out, re.DOTALL)
def test_location_search_sample(capsys):
    import location_search_sample
    import re

    location_search_sample.run_sample()
    out, _ = capsys.readouterr()
    expected = ('.*appliedJobLocationFilters.*\n'
                '.*appliedJobLocationFilters.*\n'
                '.*appliedJobLocationFilters.*\n'
                '.*appliedJobLocationFilters.*\n'
                '.*appliedJobLocationFilters.*\n')
    assert re.search(expected, out, re.DOTALL)
    expected = ('.*matchingJobs.*\n'
                '.*matchingJobs.*\n'
                '.*matchingJobs.*\n'
                '.*matchingJobs.*\n'
                '.*matchingJobs.*\n')
    assert re.search(expected, out, re.DOTALL)
def test_location_search_sample(capsys):
    import location_search_sample
    import re

    location_search_sample.run_sample()
    out, _ = capsys.readouterr()
    expected = ('.*locationFilters.*\n'
                '.*locationFilters.*\n'
                '.*locationFilters.*\n'
                '.*locationFilters.*\n'
                '.*locationFilters.*\n')
    assert re.search(expected, out, re.DOTALL)
    expected = ('.*matchingJobs.*\n'
                '.*matchingJobs.*\n'
                '.*matchingJobs.*\n'
                '.*matchingJobs.*\n'
                '.*matchingJobs.*\n')
    assert re.search(expected, out, re.DOTALL)