Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement/unit tests #21

Closed

Conversation

scottmcdonnell
Copy link
Contributor

@scottmcdonnell scottmcdonnell commented Feb 7, 2024

Tests with mock Kitsu data for existing endpoints:

  • [GET] /addons/kitsu/{version}/pairing
  • [POST] /addons/kitsu/{version}/pairing
  • [POST] /addons/kitsu/{version}/push

Tests for:

  • services/processor.fullsync.py

tests can be added for new functions needed in push.py to handle the kitsu listener payloads.

@martastain
Copy link
Member

Do you think you could change the structure, so tests would be separated from the rest of the package? Like:

.
├── client
├── create_package.py
├── LICENSE
├── README.md
├── server
├── services
├── tests
│   ├── common
│   │   ├── __init__.py
│   │   └── utils.py
│   ├── pyproject.toml
│   ├── pytest.ini
│   └── tests
│       ├── fixtures.py
│       ├── __init__.py
│       ├── mock_data.py
│       ├── test_fullsync.py
│       ├── test_pairing.py
│       ├── test_push_create.py
│       ├── test_push_update.py
│       └── test_utils.py
└── version.py

@martastain martastain mentioned this pull request Feb 19, 2024
@scottmcdonnell
Copy link
Contributor Author

superseded by #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants