Skip to content

test_organization#

test_create_missing_organization_url#

Source code in tests/unit/apps/actors/models/test_organization.py
def test_create_missing_organization_url():
    with pytest.raises(IntegrityError):
        OrganizationFactory.create(url="")

test_create_duplicate_organization_url#

Source code in tests/unit/apps/actors/models/test_organization.py
def test_create_duplicate_organization_url():
    OrganizationFactory.create(url="https://example.com/org")
    with pytest.raises(IntegrityError):
        OrganizationFactory.create(url="https://example.com/org")

test_create_missing_organization_code#

Source code in tests/unit/apps/actors/models/test_organization.py
def test_create_missing_organization_code():
    with pytest.raises(IntegrityError):
        OrganizationFactory.create(code="")

test_create_duplicate_organization_code#

Source code in tests/unit/apps/actors/models/test_organization.py
def test_create_duplicate_organization_code():
    OrganizationFactory.create(code="org")
    with pytest.raises(IntegrityError):
        OrganizationFactory.create(code="org")

test_create_organization_without_scheme#

Source code in tests/unit/apps/actors/models/test_organization.py
def test_create_organization_without_scheme():
    with pytest.raises(IntegrityError):
        OrganizationFactory.create(in_scheme="")