Skip to content

Commit 377d098

Browse files
committed
initial test suite completed
1 parent ebe07ff commit 377d098

13 files changed

Lines changed: 50 additions & 2 deletions

.DS_Store

0 Bytes
Binary file not shown.

src/pybritive/commands/login.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
@click.command()
77
@build_britive
8-
@britive_options(names='tenant,passphrase')
9-
def login(ctx, tenant, passphrase):
8+
@britive_options(names='tenant,token,passphrase')
9+
def login(ctx, tenant, token, passphrase):
1010
"""
1111
Perform an interactive login to obtain temporary credentials.
1212

tests/conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,12 @@ def profile():
6969
return profile
7070

7171

72+
@pytest.fixture
73+
def unset_api_token_env_var():
74+
name = 'BRITIVE_API_TOKEN'
75+
if name in os.environ.keys():
76+
del os.environ[name]
77+
78+
79+
7280

0 commit comments

Comments
 (0)