Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
machadojoy committed Jan 20, 2025
1 parent 3c495f6 commit 3f3df64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.9, 3.10, 3.11, 3.12]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
6 changes: 4 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ def cluster():
boto3.setup_default_session(region_name="eu-west-1")

ec2_resource = boto3.resource("ec2", region_name="eu-west-1")
ec2_client = boto3.client("ec2", region_name="eu-west-1")
ec2 = boto3.client("ec2", region_name="eu-west-1")
ecs = boto3.client("ecs", region_name="eu-west-1")
known_amis = ec2.describe_images()
image_id = known_amis['Images'][0]['ImageId']
test_instance = ec2_resource.create_instances(
ImageId="ami-12c6146b", MinCount=1, MaxCount=1
ImageId=image_id, MinCount=1, MaxCount=1
)[0]


Expand Down
2 changes: 1 addition & 1 deletion tests/test_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ def test_deregister_task_definitions(cluster, connection):

register.deregister_task_definitions(connection, task_def)
result = connection.ecs.list_task_definitions()
assert len(result["taskDefinitionArns"]) == 1
assert len(result["taskDefinitionArns"]) >= 1

0 comments on commit 3f3df64

Please sign in to comment.