Skip to content

Commit

Permalink
Merge pull request #354 from fair-software/unauth-tests
Browse files Browse the repository at this point in the history
Unauth tests
  • Loading branch information
jspaaks authored Sep 1, 2022
2 parents 34e424e + ba7bcb3 commit 3614284
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions livetests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import os

from click.testing import CliRunner
from howfairis.cli.cli import cli


def test_valid_github_url_unauthenticated():
assert os.getenv("APIKEY_GITHUB") is None, "This test should run unauthenticated"
runner = CliRunner()
result = runner.invoke(cli, ["https://github.com/fair-software/howfairis"])
expected_exit_code = str(0)
Expand All @@ -11,6 +14,7 @@ def test_valid_github_url_unauthenticated():


def test_valid_gitlab_url_unauthenticated():
assert os.getenv("APIKEY_GITHUB") is None, "This test should run unauthenticated"
runner = CliRunner()
result = runner.invoke(cli, ["https://gitlab.com/jspaaks/howfairis-livetest"])
expected_exit_code = str(0)
Expand Down

0 comments on commit 3614284

Please sign in to comment.