File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def check_credentials():
1010 if environ .get ('REPO_USER' ) and environ .get ('REPO_PASS' ):
1111 return {'username' : environ ['REPO_USER' ],
1212 'password' : environ ['REPO_PASS' ]}
13- return {}
13+ return None
1414
1515
1616def pull_latest (image , keep_tag , api_client ):
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def read_reqs(requirements):
1313
1414setup (
1515 name = 'ouroboros-cli' ,
16- version = '0.3.1 ' ,
16+ version = '0.3.2 ' ,
1717 description = 'Automatically update running docker containers' ,
1818 long_description = readme (),
1919 long_description_content_type = 'text/markdown' ,
Original file line number Diff line number Diff line change 44
55
66def test_image_check_credentials_no_env_var ():
7- assert image .check_credentials () == {}
7+ assert not image .check_credentials ()
88
99
1010def test_image_check_credentials_env_var (mocker ):
@@ -14,7 +14,7 @@ def test_image_check_credentials_env_var(mocker):
1414
1515def test_image_check_credentials_false_env_var (mocker ):
1616 mocker .patch .dict ('os.environ' , {'REPO_USR' : 'test_user' , 'REPO_PaSS' : 'test_pass' })
17- assert image .check_credentials () == {}
17+ assert not image .check_credentials ()
1818
1919
2020def test_image_is_up_to_date ():
@@ -32,4 +32,4 @@ def test_remove_exception(mocker, caplog):
3232
3333 image .remove (fake_image , fake_api )
3434 fake_api .remove_image .assert_called_once_with (fake_image )
35- assert 'Could not clean up image: testcontainer:1.1, reason:' in caplog .text
35+ assert 'Could not clean up image: testcontainer:1.1, reason:' in caplog .text
You can’t perform that action at this time.
0 commit comments