-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change test structure and add docstring to fly_and_collect
- Loading branch information
Rose Yemelyanova
committed
Oct 23, 2023
1 parent
02eb1d5
commit 03a65ec
Showing
3 changed files
with
44 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import uuid | ||
|
||
import pytest | ||
|
||
from dls_bluesky_core.core.coordination import group_uuid | ||
|
||
|
||
@pytest.mark.parametrize("group", ["foo", "bar", "baz", str(uuid.uuid4())]) | ||
def test_group_uid(group: str): | ||
gid = group_uuid(group) | ||
assert gid.startswith(f"{group}-") | ||
assert not gid.endswith(f"{group}-") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters