-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add testing and remove unused code #257
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
2d5ca67
Install Playwright
symroe 7ad6b10
Test frontend
symroe 6217477
Handle cases where no initial date exists
VirginiaDooley a0508de
Use YNR auth token to address rate limiting
VirginiaDooley 395ea78
Test redirect after leaflet creation
VirginiaDooley 456fca4
Install and use pytest
VirginiaDooley 4a8e3f5
Convert tests to use pytest
VirginiaDooley abd4b4a
Convert image_editing tests from TestCase to pytest
VirginiaDooley 871fda9
Remove unused code
VirginiaDooley 9da376a
Return a relative path to address path traversal attempt
VirginiaDooley 5f91235
Saving an LeafletImage requires an image file and name
VirginiaDooley b46d2cc
Adjust tests after asking pytest to use testing.py
VirginiaDooley 49fe17a
Add pytest coverage for core forms
VirginiaDooley 5e1b270
Add pytest coverage for core models
VirginiaDooley 703d9e6
Remove bulk of analysis app
symroe 767b789
Add pytest coverage for api views
VirginiaDooley 85bdf20
Add pytest coverage for api feeds
VirginiaDooley 6e56553
Update deploy instructions
VirginiaDooley 772e36d
Handle multiple parties returned
VirginiaDooley 146218c
Convert Person model tests from TestCase to pytest
VirginiaDooley 9362d00
Fix status message
VirginiaDooley 3042d04
Remove codecov arguements; TODO: config for codecov
VirginiaDooley a6c6408
Clear cache
VirginiaDooley cb51f0a
Remove six; no longer used
VirginiaDooley 6844a8b
Use live_server from pytest-django to start server
VirginiaDooley 961fb3b
Remove bulk of constituencies app
symroe a1305e7
Remove party importer
symroe 8bfa638
DRY up YNR base URL
symroe 426786a
Import switcher in design system
symroe c8bb940
Mock YNR in tests
symroe 6e1e352
Don't add Party objects when saving leaflets
symroe 7d3d0a6
Fail tests if errors are written to the browser console
symroe 246443d
USe test settings in CI and ensure static works
symroe e4695fa
Save images depending on the backend
symroe fa7264e
Don't set the default postgres user in base settings
symroe 29cac4c
Remove test_media and use tempdir as MEDIA_ROOT in tests
symroe 2da7fd9
Fix Pipfile test command
symroe 64c67b1
Use debug mode for live_server
symroe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the things I was hoping we would cover under the banner of "removing unused code[/stuff]" was unused packages. I think there are 2 big problems we have on this project:
I'd really like us to fix both of these problems.
If the next thing you are going to do is migrate from pipenv to UV, I am happy to just ignore this for now and include it in the UV migration PR. This was one of the things I did as part of that exercise on EE:
Although the scale of the problem is bigger on this project.
Anyway. If we want to just ignore it for now, fine. Just want to flag it as a thing that needs doing.