mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 07:19:15 +02:00
Moved actor domain to a dedicated table
This commit is contained in:
parent
060543f62c
commit
7ac3bb98da
14 changed files with 244 additions and 44 deletions
|
@ -54,3 +54,16 @@ def test_actor_get_quota(factories):
|
|||
expected = {"total": 10, "pending": 1, "skipped": 2, "errored": 3, "finished": 4}
|
||||
|
||||
assert library.actor.get_current_usage() == expected
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"value, expected",
|
||||
[
|
||||
("Domain.com", "domain.com"),
|
||||
("hello-WORLD.com", "hello-world.com"),
|
||||
("posés.com", "posés.com"),
|
||||
],
|
||||
)
|
||||
def test_domain_name_saved_properly(value, expected, factories):
|
||||
domain = factories["federation.Domain"](name=value)
|
||||
assert domain.name == expected
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue