cli2 5.0.0rc12__tar.gz → 5.0.0rc14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cli2-5.0.0rc12/cli2.egg-info → cli2-5.0.0rc14}/PKG-INFO +5 -1
- {cli2-5.0.0rc12 → cli2-5.0.0rc14/cli2.egg-info}/PKG-INFO +5 -1
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2.egg-info/requires.txt +6 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/setup.py +3 -1
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_client.py +13 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/MANIFEST.in +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/README.rst +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/classifiers.txt +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/__init__.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/asyncio.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/cli.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/cli2.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/colors.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/configuration.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/decorators.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/display.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/examples/__init__.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/examples/conf.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/examples/example.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/examples/example_obj.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/examples/nesting.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/examples/obj.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/examples/obj2.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/examples/test.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/lock.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/log.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/mask.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/node.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/sphinx.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/table.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2/test.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2.egg-info/SOURCES.txt +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2.egg-info/dependency_links.txt +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2.egg-info/entry_points.txt +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/cli2.egg-info/top_level.txt +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/setup.cfg +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_ansible.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_ansible_variables.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_asyncio.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_cli.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_command.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_configuration.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_decorators.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_display.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_entry_point.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_group.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_inject.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_lock.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_mask.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_node.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_restful.py +0 -0
- {cli2-5.0.0rc12 → cli2-5.0.0rc14}/tests/test_table.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: cli2
|
|
3
|
-
Version: 5.0.
|
|
3
|
+
Version: 5.0.0rc14
|
|
4
4
|
Summary: image:: https://yourlabs.io/oss/cli2/badges/master/pipeline.svg
|
|
5
5
|
Home-page: https://yourlabs.io/oss/cli2
|
|
6
6
|
Author: James Pic
|
|
@@ -13,6 +13,10 @@ Requires-Dist: docstring_parser
|
|
|
13
13
|
Requires-Dist: pyyaml
|
|
14
14
|
Requires-Dist: pygments
|
|
15
15
|
Requires-Dist: structlog
|
|
16
|
+
Provides-Extra: httpx
|
|
17
|
+
Requires-Dist: chttpx; extra == "httpx"
|
|
18
|
+
Provides-Extra: ansible
|
|
19
|
+
Requires-Dist: cansible; extra == "ansible"
|
|
16
20
|
Provides-Extra: test
|
|
17
21
|
Requires-Dist: freezegun; extra == "test"
|
|
18
22
|
Requires-Dist: pytest; extra == "test"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: cli2
|
|
3
|
-
Version: 5.0.
|
|
3
|
+
Version: 5.0.0rc14
|
|
4
4
|
Summary: image:: https://yourlabs.io/oss/cli2/badges/master/pipeline.svg
|
|
5
5
|
Home-page: https://yourlabs.io/oss/cli2
|
|
6
6
|
Author: James Pic
|
|
@@ -13,6 +13,10 @@ Requires-Dist: docstring_parser
|
|
|
13
13
|
Requires-Dist: pyyaml
|
|
14
14
|
Requires-Dist: pygments
|
|
15
15
|
Requires-Dist: structlog
|
|
16
|
+
Provides-Extra: httpx
|
|
17
|
+
Requires-Dist: chttpx; extra == "httpx"
|
|
18
|
+
Provides-Extra: ansible
|
|
19
|
+
Requires-Dist: cansible; extra == "ansible"
|
|
16
20
|
Provides-Extra: test
|
|
17
21
|
Requires-Dist: freezegun; extra == "test"
|
|
18
22
|
Requires-Dist: pytest; extra == "test"
|
|
@@ -44,7 +44,7 @@ from setuptools import setup
|
|
|
44
44
|
|
|
45
45
|
setup(
|
|
46
46
|
name='cli2',
|
|
47
|
-
version='5.0.
|
|
47
|
+
version='5.0.0rc14',
|
|
48
48
|
setup_requires='setupmeta',
|
|
49
49
|
packages=['cli2'],
|
|
50
50
|
install_requires=[
|
|
@@ -54,6 +54,8 @@ setup(
|
|
|
54
54
|
'structlog',
|
|
55
55
|
],
|
|
56
56
|
extras_require=dict(
|
|
57
|
+
httpx=['chttpx'],
|
|
58
|
+
ansible=['cansible'],
|
|
57
59
|
test=[
|
|
58
60
|
'freezegun',
|
|
59
61
|
'pytest',
|
|
@@ -600,6 +600,19 @@ async def test_pagination_last(httpx_mock, reverse_client):
|
|
|
600
600
|
assert last_item['a'] == 5
|
|
601
601
|
|
|
602
602
|
|
|
603
|
+
@pytest.mark.asyncio
|
|
604
|
+
async def test_paginator_call(httpx_mock):
|
|
605
|
+
httpx_mock.add_response(
|
|
606
|
+
url='http://lol/bar',
|
|
607
|
+
json=dict(items=[dict(a=1), dict(a=2)]),
|
|
608
|
+
)
|
|
609
|
+
client = chttpx.Client(base_url='http://lol')
|
|
610
|
+
paginator = client.paginate('/bar')
|
|
611
|
+
cb = mock.AsyncMock()
|
|
612
|
+
await paginator.call(cb)
|
|
613
|
+
assert cb.call_args_list == [mock.call({'a': 1}), mock.call({'a': 2})]
|
|
614
|
+
|
|
615
|
+
|
|
603
616
|
def test_descriptor(client_class):
|
|
604
617
|
class Model(client_class.Model):
|
|
605
618
|
id = chttpx.Field()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|