hroman-codes / tinyOrganicsPythonDjango

A feature to help TinyOrganics filter out recipes that do NOT contain any ingredients that a child is allergic to. Mock API's for recipes and allergens provided by TinyOrganics.
0 stars 0 forks source link

Request for test #1

Open KevL927 opened 3 years ago

KevL927 commented 3 years ago

Could you add some tests to this?

hroman-codes commented 3 years ago

@KevL927 Absolutely 👍

I added this requirement to the Future Improvements section in my README file. I am currently researching which testing suite I am going to implement.

Do you have any suggestions?

KevL927 commented 3 years ago

Have you ever heard of Cypress? I think it's pretty easy to use and implement into a project.

hroman-codes commented 3 years ago

@KevL927 I never heard of it. I took a peek and it appears it's solely a JavaScript End to End Testing Framework my app is writing in Django/Python.

I found a solution that is the preferred way to write tests in Django using the unittest module built-in to the Python standard library. I will go with this option for now and tag you once I have written a few test for this app.

Hopefully it goes well 🤞

hroman-codes commented 3 years ago

Hey @KevL927 I was able to add the first set of tests for the home page. I am currently working on writing a few more tests for the form and recipes page.

Check it out here https://github.com/getromandev/tinyOrganicsPythonDjango/blob/main/tinyOrganicApp/tests.py