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

Add ability to perfrom REST API tests #7

Merged
merged 11 commits into from
Oct 8, 2020
Merged

Add ability to perfrom REST API tests #7

merged 11 commits into from
Oct 8, 2020

Conversation

Liam-Deacon
Copy link
Owner

Implement test harness for REST API endpoints and ORM model testing

@todo
Copy link

todo bot commented Oct 8, 2020

:

.. todo::
This function is too complex, performing many changes
(for instance uses user env and conf files together)
and therefore needs refactoring in order to be more easily
(and thoroughly) tested.


This comment was generated by todo based on a todo comment in 0a3282c in #7. cc @Liam-Deacon.

@todo
Copy link

todo bot commented Oct 8, 2020

')

@pytest.mark.skip('TODO')
def test_list_gift_id_purchase_post(client, test_auth_headers):
pass
@pytest.mark.skip('TODO')


This comment was generated by todo based on a TODO comment in 0a3282c in #7. cc @Liam-Deacon.

@todo
Copy link

todo bot commented Oct 8, 2020

')

@pytest.mark.skip('TODO')
def test_list_gift_id_delete(client, test_auth_headers):
pass
@pytest.mark.skip('TODO')


This comment was generated by todo based on a TODO comment in 0a3282c in #7. cc @Liam-Deacon.

@todo
Copy link

todo bot commented Oct 8, 2020

')

@pytest.mark.skip('TODO')
def test_list_gift_id_get(client, test_auth_headers):
pass
@pytest.mark.skip('TODO')


This comment was generated by todo based on a TODO comment in 0a3282c in #7. cc @Liam-Deacon.

@todo
Copy link

todo bot commented Oct 8, 2020

')

@pytest.mark.skip('TODO')
def test_list_add_post(client, test_auth_headers):
pass
def test_list_report_get(client, test_auth_headers):


This comment was generated by todo based on a TODO comment in 0a3282c in #7. cc @Liam-Deacon.

@codecov
Copy link

codecov bot commented Oct 8, 2020

Codecov Report

Merging #7 into master will increase coverage by 16.71%.
The diff coverage is 77.50%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master       #7       +/-   ##
===========================================
+ Coverage   51.91%   68.63%   +16.71%     
===========================================
  Files          13       15        +2     
  Lines         599      628       +29     
  Branches       49       50        +1     
===========================================
+ Hits          311      431      +120     
+ Misses        285      187       -98     
- Partials        3       10        +7     
Flag Coverage Δ
#unittests 68.63% <77.50%> (+16.71%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
online_store/backend/models/user.py 90.32% <ø> (+9.67%) ⬆️
online_store/backend/utils/jwt_callbacks.py 60.00% <60.00%> (ø)
online_store/backend/models/database.py 92.30% <91.66%> (-7.70%) ⬇️
online_store/backend/gift_list.py 68.00% <100.00%> (+9.71%) ⬆️
online_store/backend/routes/auth.py 76.28% <100.00%> (+45.76%) ⬆️
online_store/db.py 100.00% <100.00%> (ø)
online_store/config/development_env.cfg 100.00% <0.00%> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e630087...0a3282c. Read the comment docs.

@Liam-Deacon Liam-Deacon merged commit 4e78d70 into master Oct 8, 2020
This was referenced Oct 8, 2020
Open
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant