Skip to content

Commit

Permalink
Merge pull request #1 from JJ11teen/dev
Browse files Browse the repository at this point in the history
add repr test, make __version__ importable
  • Loading branch information
JJ11teen authored Oct 18, 2021
2 parents c039dc7 + 6021536 commit 19a7d98
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
environment: lucas_env
strategy:
matrix:
include:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = deflatable-dict
version = 0.2.0
version = attr: deflatabledict.__version__
author = Lucas Sargent
author_email = lucas.sargent@eliiza.com.au
description = A dictionary that can be flattened and re-inflated
Expand Down
1 change: 1 addition & 0 deletions src/deflatabledict/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from deflatabledict.deflatable import DeflatableDict

__all__ = [DeflatableDict]
__version__ = "0.3.0"
3 changes: 3 additions & 0 deletions tests/2_deflatabledict.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ def test_deflating(flat_deliminated_dict, nested_dict):

assert dd == nested_dict
assert dd.deflate() == flat_deliminated_dict

# This tests the __repr__
assert str(dd) == str(flat_deliminated_dict)

0 comments on commit 19a7d98

Please sign in to comment.