Skip to content

Commit 8de1401

Browse files
committed
feat: update test cases to remove unnecessary protocol loading and clean up imports
1 parent 075a40d commit 8de1401

2 files changed

Lines changed: 1 addition & 22 deletions

File tree

build/python/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,3 @@ Thumbs.db
138138

139139
# generated protobuf
140140
src/tucana/generated/*/*.py
141-
!src/tucana/generated/*/__init__.py

build/python/tests/test_tucana.py

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,18 @@
1-
import pytest
2-
3-
from tucana import load_protocol, AVAILABLE_PROTOCOLS
4-
5-
6-
def test_available_protocols():
7-
"""Test that AVAILABLE_PROTOCOLS is defined."""
8-
assert AVAILABLE_PROTOCOLS == ("shared", "aquila", "sagittarius", "velorum")
9-
10-
111
def test_load_shared():
122
"""Test loading shared protocol."""
13-
load_protocol("shared")
143
from tucana.generated import shared # noqa: F401
154

165

176
def test_load_aquila():
187
"""Test loading aquila protocol."""
19-
load_protocol("aquila")
208
from tucana.generated import aquila # noqa: F401
219

2210

2311
def test_load_sagittarius():
2412
"""Test loading sagittarius protocol."""
25-
load_protocol("sagittarius")
2613
from tucana.generated import sagittarius # noqa: F401
2714

2815

2916
def test_load_velorum():
3017
"""Test loading velorum protocol."""
31-
load_protocol("velorum")
32-
from tucana.generated import velorum # noqa: F401
33-
34-
35-
def test_load_invalid_protocol():
36-
"""Test loading invalid protocol raises error."""
37-
with pytest.raises(ValueError, match="Unknown protocol"):
38-
load_protocol("invalid")
18+
from tucana.generated import velorum # noqa: F401

0 commit comments

Comments
 (0)