Skip to content

Commit

Permalink
Merge pull request #178 from larsks/fix/interactive-prompt-during-tests
Browse files Browse the repository at this point in the history
Avoid interactive prompts during unit tests
  • Loading branch information
knikolla authored Nov 1, 2024
2 parents 63a6c74 + 09c6c6a commit e11aced
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
git+https://github.com/CCI-MOC/nerc-rates@74eb4a7#egg=nerc_rates
boto3
coldfront >= 1.0.4
coldfront >= 1.1.0
python-cinderclient # TODO: Set version for OpenStack Clients
python-keystoneclient
python-memcached==1.59
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ python_requires = >=3.8
install_requires =
nerc_rates @ git+https://github.com/CCI-MOC/nerc-rates@74eb4a7
boto3
coldfront >= 1.0.4
coldfront >= 1.1.0
python-cinderclient
python-keystoneclient
python-memcached == 1.59
Expand Down
2 changes: 1 addition & 1 deletion src/coldfront_plugin_cloud/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TestBase(TestCase):
def setUp(self) -> None:
# Otherwise output goes to the terminal for every test that is run
backup, sys.stdout = sys.stdout, open(devnull, 'a')
call_command('initial_setup', )
call_command('initial_setup', '-f')
call_command('load_test_data')
call_command('register_cloud_attributes')
sys.stdout = backup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TestAttributeMigration(base.TestBase):
def setUp(self) -> None:
# Run initial setup but do not register the attributes
backup, sys.stdout = sys.stdout, open(devnull, 'a')
call_command('initial_setup', )
call_command('initial_setup', '-f')
call_command('load_test_data')
sys.stdout = backup

Expand Down

0 comments on commit e11aced

Please sign in to comment.