Skip to content

Commit

Permalink
Add warning message about skipped authtests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice Jacques committed Mar 19, 2024
1 parent a04c041 commit ca82b8e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/tests_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
# Python library
from contextlib import contextmanager
import unittest
from unittest import skip, skipUnless
from unittest import skip, skipUnless, skipIf
import datetime

#! from unittest mock, skipIf, skipUnless
Expand Down Expand Up @@ -688,6 +688,13 @@ def test_align_7(self):
ar_dict, grid = sg.align_records(got.records, precision=11)
# shape = ar_dict['flux'].shape

@skipIf('usrpw' in os.environ, 'Ran with usrpw provided')
class NoopTest(unittest.TestCase):
"""Non-tests."""

def test_noop(self):
print('<Skipped-AuthTest>', end='', flush=True)

@skipUnless('usrpw' in os.environ, 'Password is required to test auth')
class AuthTest(unittest.TestCase):
"""Test authorization and authentication features"""
Expand Down

0 comments on commit ca82b8e

Please sign in to comment.