Skip to content

Commit

Permalink
Skip test if CI context - cf #176
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed Jun 7, 2023
1 parent f33e2dd commit 886131a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions backend/gn_module_export/tests/test_blueprint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os
import pytest

from jsonschema import validate as validate_json
from flask import url_for
from werkzeug.datastructures import Headers
Expand Down Expand Up @@ -44,6 +46,10 @@ def test_private_export_with_good_token(self, users, exports):
)
assert response.status_code == 200

@pytest.mark.skipif(
os.environ.get("CI") == "true",
reason="Test localy only cf https://github.com/PnX-SI/gn_module_export/issues/176",
)
def test_private_export_with_token_in_header_Authorization_Bearer(self, users, exports):
# With good token and good Authorization Bearer HTTP header
token = exports["private_user_associated"].cor_roles_exports[0].token
Expand Down

0 comments on commit 886131a

Please sign in to comment.