This commit is contained in:
@@ -9,10 +9,20 @@ from apps.sources.services.robots import RobotsDecision
|
||||
|
||||
|
||||
def test_platform_domains_are_denied_including_subdomains():
|
||||
assert is_denied_domain("www.linkedin.com")
|
||||
assert is_denied_domain("be.indeed.com")
|
||||
for domain in (
|
||||
"www.linkedin.com",
|
||||
"be.indeed.com",
|
||||
"www.ictjob.be",
|
||||
"www.jobat.be",
|
||||
"www.stepstone.be",
|
||||
"www.careerjet.be",
|
||||
"jobs.randstad.be",
|
||||
"www.roberthalf.com",
|
||||
):
|
||||
assert is_denied_domain(domain)
|
||||
assert not is_denied_domain("jobs.example.org")
|
||||
assert not assess_url("https://www.linkedin.com/jobs/view/123").allowed
|
||||
assert not assess_url("https://www.ictjob.be/nl/it-vacatures-zoeken/example").allowed
|
||||
|
||||
|
||||
@pytest.mark.security
|
||||
|
||||
Reference in New Issue
Block a user