You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2025. It is now read-only.
Thanks for working on this! My apologies for the delay, I may not be able to merge this in time for you to get hacktoberfest credit...
I'm having an issue with testing this, I'm getting a django.core.exceptions.ImproperlyConfigured error as shown in the below screenshot. Am I doing something wrong when testing this locally? A little research showed that perhaps there's a missing pytest.ini file?
Additionally @ar4s already created a few basic tests here using the default Django way. I do think pytest might be cleaner or easier to work on, do you know of any benefits of using one over the other? I've not done work with testing before
I also found pytest-django which seems to add some useful features for testing. Perhaps this might be useful?
This file contains hidden or 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
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.
Overview:
I am setting up initial tests that can be run before pushing your code to ensure no breaking changes.
Run the Pytest command. It will automatically look for files with the test_ prefix and run them.
This PR does not include an exhaustive list of all tests, but it will allow us to use it as a stepping stone for any future features.
Here's a sample output when you run the command

pytest --verbose