Update test_can_be_used_as_personal_email to only skip if using GitHub Actions.
This commit is contained in:
parent
f7be992437
commit
116fc7114a
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -66,6 +66,8 @@ jobs:
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
pytest
|
pytest
|
||||||
|
env:
|
||||||
|
GITHUB_ACTIONS_TEST: true
|
||||||
|
|
||||||
- name: Archive code coverage results
|
- name: Archive code coverage results
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
|
|
@ -64,8 +64,9 @@ def test_email_belongs_to_alias_domains():
|
||||||
assert not can_create_directory_for_address("hey@d3.test")
|
assert not can_create_directory_for_address("hey@d3.test")
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip(
|
@pytest.mark.skipif(
|
||||||
reason="this test requires DNS lookup that does not work on Github CI"
|
"GITHUB_ACTIONS_TEST" in os.environ,
|
||||||
|
reason="this test requires DNS lookup that does not work on Github CI",
|
||||||
)
|
)
|
||||||
def test_can_be_used_as_personal_email(flask_client):
|
def test_can_be_used_as_personal_email(flask_client):
|
||||||
# default alias domain
|
# default alias domain
|
||||||
|
|
Loading…
Reference in a new issue