Doveps / mono

Code for Doveps projects
http://doveps.com
MIT License
0 stars 0 forks source link

04-05-2018: Initializing Null Testcase #140

Closed JosiahRegencia closed 6 years ago

JosiahRegencia commented 6 years ago

I initialized the null test case. Got confused along the way as to how to implement it. Created a new branch null-testcase

Here is the test case:

https://github.com/Doveps/mono/blob/7bbaa21f5b8365ed508e084db2f67b0e07b950e8/savant/tests/test_basic.py#L43-L50

I based it from this:

https://github.com/Doveps/mono/blob/7bbaa21f5b8365ed508e084db2f67b0e07b950e8/savant/app/query.py#L161-L176

What it does is it searches for any repetition in the DB. If it returns an empty list, then it passes.

screenshot from 2018-04-05 23-49-31

I could add more details in the testing. Just wanted to make sure first I'm on the right track.

greenmoss commented 6 years ago

Hi Josiah, I reviewed the PR. This is a good first pass at the logic. However for testing purposes we should focus on the GET and CREATE API endpoints. For instance:

Let me know if you have questions, we can do a video chat if you want.