Skip to content

Commit

Permalink
Merge pull request #78 from fyndiq/update-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrizuezu authored Jun 21, 2022
2 parents 5676532 + a13b042 commit 8429aa5
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 64 deletions.
2 changes: 1 addition & 1 deletion eventsourcing_helpers/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class OldMessage(Message):

def __getattr__(self, name: str) -> Callable:
attr = getattr(self._wrapped, name, None)
return copy.deepcopy(attr)
return copy.deepcopy(attr) # type: ignore


def message_factory(message_cls: namedtuple, is_new=True) -> type:
Expand Down
1 change: 1 addition & 0 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ pytest
pytest-coverage
pytest-mock
pytest-sugar
types-redis
yapf
137 changes: 80 additions & 57 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,157 +1,180 @@
#
# This file is autogenerated by pip-compile
# This file is autogenerated by pip-compile with python 3.9
# To update, run:
#
# pip-compile --output-file=requirements.txt requirements.in
#
attrs==20.2.0
appnope==0.1.3
# via ipython
asttokens==2.0.5
# via stack-data
async-timeout==4.0.2
# via redis
attrs==21.4.0
# via
# flake8-eradicate
# pytest
backcall==0.2.0
# via ipython
certifi==2020.6.20
certifi==2022.6.15
# via requests
chardet==3.0.4
charset-normalizer==2.0.12
# via requests
click==7.1.2
click==8.1.3
# via pip-tools
codecov==2.1.9
codecov==2.1.12
# via -r requirements.in
coverage==5.3
coverage[toml]==6.4.1
# via
# codecov
# pytest-cov
decorator==4.4.2
# via ipython
eradicate==1.0
decorator==5.1.1
# via
# ipdb
# ipython
deprecated==1.2.13
# via redis
eradicate==2.1.0
# via flake8-eradicate
fakeredis==1.4.3
executing==0.8.3
# via stack-data
fakeredis==1.8.1
# via -r requirements.in
fancycompleter==0.9.1
# via pdbpp
flake8==3.8.3
flake8==4.0.1
# via
# -r requirements.in
# flake8-eradicate
# flake8-isort
flake8-eradicate==0.4.0
flake8-eradicate==1.2.1
# via -r requirements.in
flake8-isort==4.0.0
flake8-isort==4.1.1
# via -r requirements.in
idna==2.10
idna==3.3
# via requests
iniconfig==1.0.1
iniconfig==1.1.1
# via pytest
ipdb==0.13.3
ipdb==0.13.9
# via -r requirements.in
ipython==7.31.1
ipython==8.4.0
# via ipdb
ipython-genutils==0.2.0
# via traitlets
isort==5.5.2
isort==5.10.1
# via
# -r requirements.in
# flake8-isort
jedi==0.17.2
jedi==0.18.1
# via ipython
matplotlib-inline==0.1.3
# via ipython
mccabe==0.6.1
# via flake8
mongomock==3.20.0
mongomock==4.0.0
# via -r requirements.in
more-itertools==8.5.0
# via pytest
mypy==0.782
mypy==0.961
# via -r requirements.in
mypy-extensions==0.4.3
# via mypy
packaging==20.4
packaging==21.3
# via
# mongomock
# pytest
# pytest-sugar
parso==0.7.1
# redis
parso==0.8.3
# via jedi
pdbpp==0.10.2
pdbpp==0.10.3
# via -r requirements.in
pep517==0.12.0
# via pip-tools
pexpect==4.8.0
# via ipython
pickleshare==0.7.5
# via ipython
pip-tools==5.3.1
pip-tools==6.6.2
# via -r requirements.in
pluggy==0.13.1
pluggy==1.0.0
# via pytest
prompt-toolkit==3.0.7
prompt-toolkit==3.0.29
# via ipython
ptyprocess==0.6.0
ptyprocess==0.7.0
# via pexpect
py==1.10.0
pure-eval==0.2.2
# via stack-data
py==1.11.0
# via pytest
pycodestyle==2.6.0
pycodestyle==2.8.0
# via flake8
pyflakes==2.2.0
pyflakes==2.4.0
# via flake8
pygments==2.7.4
pygments==2.12.0
# via
# ipython
# pdbpp
pyparsing==2.4.7
pyparsing==3.0.9
# via packaging
pyrepl==0.9.0
# via fancycompleter
pytest==6.0.2
pytest==7.1.2
# via
# -r requirements.in
# pytest-cov
# pytest-mock
# pytest-sugar
pytest-cov==2.10.1
pytest-cov==3.0.0
# via pytest-cover
pytest-cover==3.0.0
# via pytest-coverage
pytest-coverage==0.0
# via -r requirements.in
pytest-mock==3.3.1
pytest-mock==3.7.0
# via -r requirements.in
pytest-sugar==0.9.4
# via -r requirements.in
redis==3.5.3
redis==4.3.3
# via fakeredis
requests==2.24.0
requests==2.28.0
# via codecov
sentinels==1.0.0
# via mongomock
six==1.15.0
six==1.16.0
# via
# fakeredis
# mongomock
# packaging
# pip-tools
sortedcontainers==2.2.2
sortedcontainers==2.4.0
# via fakeredis
stack-data==0.3.0
# via ipython
termcolor==1.1.0
# via pytest-sugar
testfixtures==6.14.2
testfixtures==6.18.5
# via flake8-isort
toml==0.10.1
# via pytest
traitlets==5.0.4
toml==0.10.2
# via ipdb
tomli==2.0.1
# via
# mypy
# pep517
# pytest
traitlets==5.3.0
# via
# ipython
# matplotlib-inline
typed-ast==1.4.1
# via mypy
typing-extensions==3.7.4.3
types-redis==4.3.0
# via -r requirements.in
typing-extensions==4.2.0
# via mypy
urllib3==1.25.10
urllib3==1.26.9
# via requests
wcwidth==0.2.5
# via prompt-toolkit
wmctrl==0.3
wheel==0.37.1
# via pip-tools
wmctrl==0.4
# via pdbpp
yapf==0.30.0
wrapt==1.14.1
# via deprecated
yapf==0.32.0
# via -r requirements.in

# The following packages are considered to be unsafe in a requirements file:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="eventsourcing-helpers",
version="0.8.12",
version="0.8.13",
description="Helpers for practicing the Event sourcing pattern",
url="https://github.com/fyndiq/eventsourcing_helpers",
author="Fyndiq AB",
Expand Down
10 changes: 5 additions & 5 deletions tests/repository/snapshot/backends/mongo/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ def test_mongo_delete_deletes_latest_snapshot(self):
db.find_one_and_replace(
query, data, upsert=True
)
assert db.find().count() == 1
assert db.count_documents(query) == 1

self.backend.delete(id)
assert db.find().count() == 0
assert db.count_documents(query) == 0

def test_mongo_delete_can_delete_empty(self):
id = 'a'

query = {'_id': id}
db = self.backend.client.snapshots.snapshots
assert db.find().count() == 0
assert db.count_documents(query) == 0
self.backend.delete(id)
assert db.find().count() == 0
assert db.count_documents(query) == 0

0 comments on commit 8429aa5

Please sign in to comment.