mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
11 lines
341 B
Python
11 lines
341 B
Python
from ahriman.models.worker import Worker
|
|
|
|
|
|
def test_post_init() -> None:
|
|
"""
|
|
must read identifier from location if not set
|
|
"""
|
|
assert Worker("http://localhost:8080").identifier == "localhost:8080"
|
|
assert Worker("remote").identifier == "" # not a valid url
|
|
assert Worker("remote", identifier="id").identifier == "id"
|