-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding a QC status message and bumped version number
- Loading branch information
1 parent
271575f
commit 5239f96
Showing
4 changed files
with
17 additions
and
1 deletion.
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,6 @@ | ||
from pigeon import BaseMessage | ||
from typing import Literal | ||
|
||
|
||
class Status(BaseMessage): | ||
state: Literal["GOOD", "STOP_AT_END", "STOP_NOW"] |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "pigeon-tem-comms" | ||
version = "0.4.0" | ||
version = "0.4.1" | ||
authors = [ | ||
{ name="Cameron Devine", email="[email protected]" }, | ||
] | ||
|
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,8 @@ | ||
from TEM_comms.qc import Status | ||
from pydantic import ValidationError | ||
import pytest | ||
|
||
|
||
def test_bad_status(): | ||
with pytest.raises(ValidationError): | ||
Status(state="BAD") |