Skip to content

Commit a2b1244

Browse files
committed
2.4.0 - Extras module with attrs, attrs unit tests
- Created `extras` module for miscellaneous package dependent code - Created `extras.attrs` module for `attrs` dependent code - Added `tests.test_extras` with unit tests for `AttribDictable` - Added `extras/extras.txt` which contains all packages required for full functionality of `helpers.extras` - Added docs for `extras` module - Added docs for `collections.make_dict_tuple`
1 parent 40afb5f commit a2b1244

17 files changed

Lines changed: 236 additions & 3 deletions
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
make\_dict\_tuple
2+
=================
3+
4+
.. currentmodule:: privex.helpers.collections
5+
6+
.. autofunction:: make_dict_tuple

docs/source/helpers/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
privex.helpers.decorators
1111
privex.helpers.django
1212
privex.helpers.exceptions
13+
privex.helpers.extras
1314
privex.helpers.net
1415
privex.helpers.plugin
1516
privex.helpers.settings

docs/source/helpers/privex.helpers.collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Module Contents
1919
convert_dictable_namedtuple
2020
dictable_namedtuple
2121
is_namedtuple
22+
make_dict_tuple
2223
subclass_dictable_namedtuple
2324

2425

@@ -38,4 +39,3 @@ Module Contents
3839

3940

4041

41-
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
privex.helpers.extras
2+
=====================
3+
4+
.. automodule:: privex.helpers.extras
5+
6+
7+
8+
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+

docs/source/helpers/tests.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Unit Test List / Overview
1414
tests.test_cache
1515
tests.test_collections
1616
tests.test_crypto
17+
tests.test_extras
1718
tests.test_general
1819
tests.test_parse
1920
tests.test_rdns
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
\_\_init\_\_
2+
============
3+
4+
.. currentmodule:: tests.test_extras
5+
6+
.. automethod:: Example.__init__
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pytestmark
2+
==========
3+
4+
.. currentmodule:: tests.test_extras
5+
6+
.. autoattribute:: TestAttrs.pytestmark
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test\_dictable\_cast\_dict
2+
==========================
3+
4+
.. currentmodule:: tests.test_extras
5+
6+
.. automethod:: TestAttrs.test_dictable_cast_dict
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test\_dictable\_set\_get
2+
========================
3+
4+
.. currentmodule:: tests.test_extras
5+
6+
.. automethod:: TestAttrs.test_dictable_set_get
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Example
2+
=======
3+
4+
.. currentmodule:: tests.test_extras
5+
6+
.. autoclass:: Example
7+
8+
9+
.. automethod:: __init__
10+
:noindex:
11+
12+
13+
Methods
14+
^^^^^^^
15+
16+
.. rubric:: Methods
17+
18+
.. autosummary::
19+
:toctree: example
20+
21+
~Example.__init__
22+
23+
24+
25+
26+

0 commit comments

Comments
 (0)