Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI versions #77

Merged
merged 3 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
working-directory: ${{ github.workspace }}/pyensign
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11.0", "3.12.0"]

steps:
- name: Checkout Code
Expand Down
9 changes: 5 additions & 4 deletions tests/pyensign/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,21 @@ async def next():
return next()


@pytest.mark.asyncio
class TestConnection:
"""
Test establishing a connection to an Ensign server.
"""

def test_connect(self):
async def test_connect(self):
conn = Connection("localhost:5356")
assert conn.create_channel() is not None

def test_connect_insecure(self):
async def test_connect_insecure(self):
conn = Connection("localhost:5356", insecure=True)
assert conn.create_channel() is not None

def test_connect_secure(self, auth):
async def test_connect_secure(self, auth):
conn = Connection("localhost:5356", auth=auth)
assert conn.create_channel() is not None

Expand All @@ -164,7 +165,7 @@ def test_connect_secure(self, auth):
"localhost:5356:5356" "https://localhost:5356",
],
)
def test_connect_bad_addr(self, addrport):
async def test_connect_bad_addr(self, addrport):
with pytest.raises(ValueError):
Connection(addrport)

Expand Down
22 changes: 6 additions & 16 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
asyncmock==0.4.2
attrs==22.2.0
certifi==2022.12.7
charset-normalizer==3.1.0
exceptiongroup==1.1.1
execnet==1.9.0
grpcio>=1.53.0
grpcio-tools==1.51.3
idna<3
iniconfig==2.0.0
MarkupSafe==2.1.2
packaging==23.0
pluggy==1.0.0
protobuf>=4.22.1
PyJWT>=2.6.0
pytest==7.2.2
grpcio==1.59.0
grpcio-tools==1.59.0
protobuf==4.24.4
PyJWT==2.8.0
pytest==7.4.2
pytest-asyncio==0.21.0
pytest-grpc==0.8.0
pytest-httpserver==1.0.6
python-ulid>=1.1.0
python-ulid==2.2.0
tomli==2.0.1
Werkzeug==2.2.3
Loading