mirror of
https://github.com/simple-login/app.git
synced 2025-02-23 07:13:18 +08:00
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 changed files with 5 additions and 2 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -66,6 +66,8 @@ jobs:
|
|||
- name: Test with pytest
|
||||
run: |
|
||||
pytest
|
||||
env:
|
||||
GITHUB_ACTIONS_TEST: true
|
||||
|
||||
- name: Archive code coverage results
|
||||
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")
|
||||
|
||||
|
||||
@pytest.mark.skip(
|
||||
reason="this test requires DNS lookup that does not work on Github CI"
|
||||
@pytest.mark.skipif(
|
||||
"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):
|
||||
# default alias domain
|
||||
|
|
Loading…
Reference in a new issue