Skip to content

Allow Setup For Unittests#179

Merged
HassanAbouelela merged 2 commits intomainfrom
add-setup
Jun 24, 2022
Merged

Allow Setup For Unittests#179
HassanAbouelela merged 2 commits intomainfrom
add-setup

Conversation

@HassanAbouelela
Copy link
Copy Markdown
Contributor

Adds the setup method as a special method for unittest question types. Additionally, a couple QoL fixes are included. I changed unit to self to clarify what it actually is, and I changed an lstrip to a removeprefix to avoid removing unintentional portions of the name (for instance something -> omething)

This will require migrating a few database entries by hand, so hold off on merging till that is ready.

Adds the setup method as a special method for unittest question types.
Additionally, a couple QoL fixes are included. I changed `unit` to
`self` to clarify what it actually is, and I changed an `lstrip` to a
`removeprefix` to avoid removing unintentional portions of the name
(for instance `something` -> `omething`)

Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
@HassanAbouelela HassanAbouelela added P0 Critical priority tasks. area: form submission Code relating to the response submission to forms backend. type: feature A new feature that should be added to the application. labels Jun 24, 2022
@HassanAbouelela
Copy link
Copy Markdown
Contributor Author

I've now added another change. Test methods are now async, more details in the commit

The codejam test suite uses async functions, which would be annoying to
deal with in our current template. Switching to async makes that
available to those who want it, without affecting those who don't.

Signed-off-by: Hassan Abouelela <hassan@hassanamr.com>
@HassanAbouelela HassanAbouelela merged commit c615219 into main Jun 24, 2022
@HassanAbouelela HassanAbouelela deleted the add-setup branch June 24, 2022 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: form submission Code relating to the response submission to forms backend. P0 Critical priority tasks. type: feature A new feature that should be added to the application.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant