Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

migrate to new @markers.aws.* markers#8850

Merged
dominikschubert merged 2 commits into
masterfrom
refactor-aws-markers
Aug 8, 2023
Merged

migrate to new @markers.aws.* markers#8850
dominikschubert merged 2 commits into
masterfrom
refactor-aws-markers

Conversation

@dominikschubert
Copy link
Copy Markdown
Member

Motivation

We've recently introduced new pytest markers in #8767 and we want to now move towards using these new markers.

Changes

Refactors all aws_validated and only_localstack markers to @markers.aws.*

Future work

A follow-up PR will add @markers.aws.unknown markers to all unmarked tests.

@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 81.751% (-0.06%) from 81.814% when pulling fb92e2c on refactor-aws-markers into de01389 on master.

Copy link
Copy Markdown
Member

@steffyP steffyP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, the first new markers in action 😄

from localstack.utils.strings import short_uid

pytestmark = [markers.parity.only_localstack]
pytestmark = [markers.aws.only_localstack]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think for the next iteration we should try to get rid of this module-level markers as well :)

Comment thread tests/aws/test_ses.py

@markers.parity.only_localstack
@markers.parity.aws_validated
@markers.aws.only_localstack
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's interesting: it seems to be both: only_localstack + aws.validated 😅
as it's a snapshot test, i guess the only_localstack can be removed some time :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I'll soon be enforcing that a test can only ave one of the @markers.aws.* markers. Basically any test in tests/aws/ has to have exactly one marker.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 8, 2023

LocalStack Community integration with Pro

       2 files         2 suites   1h 23m 21s ⏱️
2 039 tests 1 655 ✔️ 384 💤 0
2 040 runs  1 655 ✔️ 385 💤 0

Results for commit fb92e2c.

@dominikschubert dominikschubert merged commit e9d6bf3 into master Aug 8, 2023
@dominikschubert dominikschubert deleted the refactor-aws-markers branch August 8, 2023 11:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

semver: patch Non-breaking changes which can be included in patch releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants