Skip to content

Commit 5966bf3

Browse files
authored
Update snapshots (#4788)
* Update snapshots * Update to use textual-snapshot v1.0.0 * Dont use xdist on CI * Update pytest-cov to fix warnings * Remove xdist thing from pythonpackage.yml GitHub workflow
1 parent 988c4b3 commit 5966bf3

File tree

309 files changed

+49787
-51300
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

309 files changed

+49787
-51300
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ run := poetry run
22

33
.PHONY: test
44
test:
5-
$(run) pytest --cov-report term-missing --cov=textual tests/ -vv
5+
$(run) pytest --cov-report term-missing --cov=textual tests/ -n 16 --dist=loadgroup $(ARGS)
66

77
.PHONY: unit-test
88
unit-test:
9-
$(run) pytest --cov-report term-missing --cov=textual tests/ -vv -m "not integration_test"
9+
$(run) pytest --cov-report term-missing --cov=textual tests/ -m "not integration_test" -n 16 --dist=loadgroup $(ARGS)
1010

1111
.PHONY: test-snapshot-update
1212
test-snapshot-update:
13-
$(run) pytest --cov-report term-missing --cov=textual tests/ -vv --snapshot-update
13+
$(run) pytest --cov-report term-missing --cov=textual tests/ --snapshot-update -n 16 --dist=loadgroup $(ARGS)
1414

1515
.PHONY: coverage
1616
coverage:

poetry.lock

Lines changed: 64 additions & 60 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 & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ include = [
4040
"Bug Tracker" = "https://github.com/Textualize/textual/issues"
4141

4242
[tool.poetry.dependencies]
43-
python = "^3.8"
43+
python = "^3.8.1"
4444
markdown-it-py = { extras = ["plugins", "linkify"], version = ">=2.1.0" }
4545
rich = ">=13.3.3"
4646
#rich = {path="../rich", develop=true}
@@ -64,15 +64,16 @@ mkdocstrings = { extras = ["python"], version = "^0.20.0" }
6464
mkdocstrings-python = "0.10.1"
6565
mypy = "^1.0.0"
6666
pre-commit = "^2.13.0"
67-
pytest = "^7.1.3"
67+
pytest = "^8.3.1"
68+
pytest-xdist = "^3.6.1"
6869
pytest-asyncio = "*"
69-
pytest-cov = "^2.12.1"
70-
pytest-textual-snapshot = ">=0.4.0"
70+
pytest-cov = "^5.0.0"
7171
textual-dev = "^1.2.0"
7272
types-setuptools = "^67.2.0.1"
7373
types-tree-sitter = "^0.20.1.4"
7474
types-tree-sitter-languages = "^1.7.0.1"
7575
isort = "^5.13.2"
76+
pytest-textual-snapshot = "^1.0.0"
7677

7778
[tool.pytest.ini_options]
7879
asyncio_mode = "auto"

0 commit comments

Comments
 (0)