Skip to content

Commit b9f8c0f

Browse files
authored
Replace nose2 with pytest. (#416)
1 parent 56c9278 commit b9f8c0f

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Run tests
6363
run: |
6464
source venv/bin/activate
65-
nose2 -v
65+
pytest -vv
6666
6767
integration-test:
6868
runs-on: ubuntu-latest

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ pip-log.txt
2828
# Unit test / coverage reports
2929
.coverage
3030
.tox
31-
nosetests.xml
3231

3332
#Misc
3433
.cache/

LICENSE-3rdparty.csv

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
Component,Origin,License,Copyright
22
flake8,gitlab.com/pycqa/flake8,MIT,"Copyright (C) 2011-2013 Tarek Ziade <tarek@ziade.org>. Copyright (C) 2012-2016 Ian Cordasco <graffatcolmingov@gmail.com>."
3-
nose2,github.com/nose-devs/nose2,BSD-2-Clause,"Copyright (c) 2012, Jason Pellerin. All rights reserved."
4-
wrapt,github.com/GrahamDumpleton/wrapt,BSD-2-Clause,"Copyright (c) 2013-2019, Graham Dumpleton"
3+
wrapt,github.com/GrahamDumpleton/wrapt,BSD-2-Clause,"Copyright (c) 2013-2019, Graham Dumpleton"

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ importlib_metadata = {version = "*", python = "<3.8"}
3636
boto3 = { version = "^1.28.0", optional = true }
3737
typing_extensions = {version = "^4.0", python = "<3.8"}
3838
requests = { version ="^2.22.0", optional = true }
39-
nose2 = { version= "^0.9.1", optional = true }
39+
pytest = { version= "^8.0.0", optional = true }
4040
flake8 = { version = "^5.0.4", optional = true }
4141

4242

4343
[tool.poetry.extras]
4444
dev = [
4545
"boto3",
46-
"requests",
47-
"nose2",
4846
"flake8",
47+
"pytest",
48+
"requests",
4949
]
5050

5151
[build-system]

scripts/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ do
1818
--build-arg python_version=$python_version
1919
docker run -w /test \
2020
datadog-lambda-python-test:$python_version \
21-
nose2 -v
21+
pytest -vv
2222
docker run -w /test \
2323
datadog-lambda-python-test:$python_version \
2424
flake8 datadog_lambda/

0 commit comments

Comments
 (0)