Skip to content

Commit 159827c

Browse files
committed
update moto library and fix deprecation warnings
1 parent dedcccb commit 159827c

File tree

4 files changed

+21
-33
lines changed

4 files changed

+21
-33
lines changed

poetry.lock

Lines changed: 11 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,19 @@ flake8 = "^5.0.1"
6060
mypy = "^0.960"
6161
pydocstyle = "^6.1.1"
6262
doc8 = "^0.11.1"
63-
tox = "^3.24.4"
64-
pytest = "^7.0.0"
63+
tox = "^3.25.1"
64+
pytest = "^7.1.2"
6565
pytest-cov = "^3.0.0"
6666
pytest-rerunfailures = "^10.2"
67-
pytest-xdist = "^2.4.0"
68-
pytest-timeout = "^2.0.1"
67+
pytest-xdist = "^2.5.0"
68+
pytest-timeout = "^2.1.0"
6969
pydot = "^1.4.2"
7070
sphinx = "^4.2.0"
7171
sphinx-bootstrap-theme = "^0.8.0"
7272
nbsphinx = "^0.8.8"
7373
nbsphinx-link = "^1.3.0"
7474
IPython = "^7.34.0"
75-
moto = "^3.1.14"
75+
moto = "^4.0.3"
7676
jupyterlab = "^3.1.4"
7777
s3fs = "0.4.2"
7878
python-Levenshtein = "^0.12.2"

tests/test_moto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def moto_glue():
6060

6161
@pytest.fixture(scope="function")
6262
def moto_dynamodb():
63-
with moto.mock_dynamodb2():
63+
with moto.mock_dynamodb():
6464
dynamodb = boto3.resource("dynamodb")
6565
dynamodb.create_table(
6666
TableName="table",

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ deps =
88
.[sqlserver]
99
.[oracle]
1010
.[sparql]
11-
pytest==7.0.0
11+
pytest==7.1.2
1212
pytest-rerunfailures==10.2
13-
pytest-xdist==2.4.0
14-
pytest-timeout==2.0.1
15-
moto==3.0.3
13+
pytest-xdist==2.5.0
14+
pytest-timeout==2.1.0
15+
moto==4.0.3
1616
s3fs==0.4.2
1717
commands =
1818
pytest -n {posargs} -s -v --timeout=300 --reruns=2 --reruns-delay=15 \

0 commit comments

Comments
 (0)