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

3008 cleanup and enabling test #29

Merged
merged 14 commits into from
Jul 1, 2024
Merged

3008 cleanup and enabling test #29

merged 14 commits into from
Jul 1, 2024

Conversation

raftmsohani
Copy link
Contributor

@raftmsohani raftmsohani commented Jun 7, 2024

Summary of changes:

Various cleanups, deletion, additions:

  • Added a Django app: Django508
  • Added taskfile
  • Added some unit tests
  • Added cypress end-to-end testing

How to test:

Run task pytest, this will run the pytest files. Additionally, you cypress end-to-end test can run using task command.

How tested:

In addition to added pytests to ensure the package is still compliant with TANF-app, the package was pulled as a dependency into TANF app and admin page was browsed, and tested using cypress test. The filters seemed to work as expected.

@raftmsohani raftmsohani self-assigned this Jun 7, 2024
@raftmsohani raftmsohani requested a review from elipe17 June 14, 2024 15:13
@raftmsohani raftmsohani added enhancement New feature or request raft-review dev labels Jun 14, 2024
* - Added start for cypress test suite

* - Added cypress tests to the task file

* - initial config for circi

* - converting from task to bash command for the moment

* - fix format

* - changing executor

* - install node packages

* - new node command

* - fixed syntax

* - debugging

* - use npm to install packages

* - install task with NOde

* - remove unneeded orb

* - Adding git hooks

* - update format

* - add missing quote

* - naming

* - Fix naming

* - Updating paths

* - Removing unnecessary param

* - docs update

* - remove settings file
- add .vscode to igniore

* - Fix merge conflicts

* - Updated model to use correct multiselect filter
- adding stub cypress test for using custom filter

* - Update so dummy models and admin classes work
- Updated multiselect filter to work

* - Added test for multiselect filtering

* - missing newline

* - changing url to avoid redirect

* - update test task

* - revert

* - add init task
README.md Outdated Show resolved Hide resolved
database_config = {
"sqlite": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": ":memory:",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the sqlite DB is always in memory, does that mean we have to run makemigrations and other init commands for each call to task up? Or does the in memory DB still get serialized to disk when the container is brought down?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sqlite is in fact not in memory but on disk. it creates .sqlite file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that is the case can we specify an actual name for the DB? :memory: is supposed to be a special name in sqlite and I'd be worried about unintended side effects! See here.

Copy link
Contributor

@elipe17 elipe17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few questions

@raftmsohani raftmsohani requested a review from elipe17 June 26, 2024 15:16
Copy link
Contributor

@elipe17 elipe17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One final ask, but everything looks good!

- checkout
- install_node_packages
- run: task init
- run: task test
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might be nice to split the different test runs in circleci so they show as different steps

Copy link

@jtimpe jtimpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small suggestion. otherwise really appreciate the test coverage and i think the cypress tests are well written! great work

@raftmsohani raftmsohani merged commit 5242b94 into main Jul 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev enhancement New feature or request raft-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants