File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 1+ keyring
12mock
23pip-tools
34pytest
45pytest-cov
5- responses
6+ responses
Original file line number Diff line number Diff line change @@ -18,8 +18,20 @@ idna==3.10
1818 # via requests
1919iniconfig == 2.1.0
2020 # via pytest
21+ jaraco-classes == 3.4.0
22+ # via keyring
23+ jaraco-context == 6.0.1
24+ # via keyring
25+ jaraco-functools == 4.2.1
26+ # via keyring
27+ keyring == 25.6.0
28+ # via -r requirements-dev.in
2129mock == 5.2.0
2230 # via -r requirements-dev.in
31+ more-itertools == 10.7.0
32+ # via
33+ # jaraco-classes
34+ # jaraco-functools
2335packaging == 25.0
2436 # via
2537 # build
Original file line number Diff line number Diff line change 11import json
22
3+ import pytest
34import responses
5+
46from conftest import Mock
7+ from upcloud_api import CloudManager
8+ from upcloud_api .errors import UpCloudClientError
59
610
711class TestCloudManagerBasic :
12+ def test_no_credentials (self ):
13+ with pytest .raises (UpCloudClientError ):
14+ CloudManager ()
15+
816 @responses .activate
917 def test_get_account (self , manager ):
1018 data = Mock .mock_get ("account" )
You can’t perform that action at this time.
0 commit comments