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

Write unit tests #55

Open
3 tasks done
Tracked by #98
Ovaday opened this issue Apr 14, 2023 · 0 comments
Open
3 tasks done
Tracked by #98

Write unit tests #55

Ovaday opened this issue Apr 14, 2023 · 0 comments
Assignees
Labels
development New feature or request release This functionality is selected for the next release.

Comments

@Ovaday
Copy link
Owner

Ovaday commented Apr 14, 2023

I've created a branch for you with 2 tests:

  • /tg_bot/tests.py
  • /tests/test_helpers.py

They can be launched with python manage.py test and python manage.py test tests/ correspondingly.

What you'll need to do:

  • Fix /tg_bot/tests.py to make run with the project. Use https://docs.djangoproject.com/en/4.2/topics/testing/overview/ as a guide.
  • Check every .py script in the helpers directory and find scripts that are testable. If there are too little of them, in addition you can test code from the folder open_ai.
  • To the defined testable methods write tests inside /tests/test_helpers.py or /tests/test_open_ai.py if applicable.
@Ovaday Ovaday mentioned this issue Apr 14, 2023
17 tasks
@Ovaday Ovaday added development New feature or request release This functionality is selected for the next release. labels Apr 14, 2023
@Ovaday Ovaday mentioned this issue Apr 19, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development New feature or request release This functionality is selected for the next release.
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants