mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 07:55:51 +03:00
[PR #455] [CLOSED] Replace nose with unittest #1078
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#1078
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/asciinema/asciinema/pull/455
Author: @stratakis
Created: 12/8/2021
Status: ❌ Closed
Base:
develop← Head:nose_replacement📝 Commits (2)
e47412bReplace nose with unittest8f8d524Remove unused code📊 Changes
19 files changed (+236 additions, -284 deletions)
View changed files
📝
.github/workflows/asciinema.yml(+0 -2)📝
.gitignore(+0 -1)📝
Makefile(+2 -2)📝
asciinema/tests/__init__.py(+0 -0)📝
asciinema/tests/asciicast/__init__.py(+0 -0)📝
asciinema/tests/asciicast/test_v2.py(+6 -2)📝
asciinema/tests/demo.cast(+0 -0)📝
asciinema/tests/demo.json(+0 -0)📝
asciinema/tests/distros.sh(+2 -2)📝
asciinema/tests/distros/Dockerfile.centos(+0 -1)📝
asciinema/tests/distros/Dockerfile.debian(+0 -1)📝
asciinema/tests/distros/Dockerfile.fedora(+0 -1)📝
asciinema/tests/distros/Dockerfile.ubuntu(+0 -1)📝
asciinema/tests/integration.sh(+10 -10)➕
asciinema/tests/test_config.py(+191 -0)➕
asciinema/tests/test_helper.py(+20 -0)📝
asciinema/tests/test_pty.py(+5 -2)➖
tests/config_test.py(+0 -208)➖
tests/test_helper.py(+0 -51)📄 Description
This PR is quite extensive as it re-organizes the tests directory structure in order to make it compatible with unittest, however I hope the conversion is pretty straightforward. This way the tests can be run via the command line
python3 -m unittest discoveror also by invokingpytestdirectly should anyone desires. I've removed some unused code as well.All the tests pass locally with this PR, I haven't checked the integration tests though.
Resolves #388
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.