Skip to content

Commit

Permalink
fixed pytests
Browse files Browse the repository at this point in the history
  • Loading branch information
semiversus committed Feb 3, 2024
1 parent 88850a3 commit 0b4a137
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ Python RevisionDict

.. image:: https://codecov.io/gh/semiversus/python-revisiondict/branch/master/graph/badge.svg
:target: https://codecov.io/gh/semiversus/python-revisiondict

.. image:: https://img.shields.io/github/license/semiversus/python-revisiondict.svg
:target: https://en.wikipedia.org/wiki/MIT_License

RevisionDict works like an ordinary dictionary with additional revision keeping of changes. It remembers the order when
keys were *updated* (in contrast to the ``OrderedDict`` which is remembering the order when keys are *inserted*).

Expand All @@ -40,13 +40,13 @@ Install
.. code-block:: bash
pip install revisiondict
Example
-------

.. code::python
>>> d=RevisionDict()
>>> from revisiondict import RevisionDict
>>> d = RevisionDict()
>>> d.revision # get revision (is 0 at init)
0
>>> d.base_revision # get revision before oldest change
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions test/test_revisiondict.py → tests/test_revisiondict.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from revisiondict import RevisionDict

if sys.version_info[0] < 3:
from test import util_mapping_py2 as util_mapping
from tests import util_mapping_py2 as util_mapping
else:
from test import util_mapping_py3 as util_mapping
from tests import util_mapping_py3 as util_mapping


class RevisionDictMappingTest(util_mapping.TestMappingProtocol):
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0b4a137

Please sign in to comment.