Skip to content

MESH API interface#119

Merged
murd0 merged 8 commits into
codonlibrary:devfrom
Khoross:mesh-clean
Mar 10, 2020
Merged

MESH API interface#119
murd0 merged 8 commits into
codonlibrary:devfrom
Khoross:mesh-clean

Conversation

@Khoross

@Khoross Khoross commented Feb 27, 2020

Copy link
Copy Markdown
Contributor
  • Please check if the Pull Request fulfills these requirements

[Y] The commit message is clear and concise
[Y] Test for the changes have been added and reviewed
[Y] Documentation has been added to all new features and edited code has had documentation reviewed

  • What kind of change does this Pull request introduce? (Bug fix, feature, docs update, ...)

Adds a client class for interacting with MESH (Message Exchange for Social Care and Health) via its API. The implements all MESH API routes as of v1.18 of the MESH API, as well as a helper method for the task of downloading all messages in an inbox.

@codecov

codecov Bot commented Feb 27, 2020

Copy link
Copy Markdown

Codecov Report

Merging #119 into dev will increase coverage by 5.98%.
The diff coverage is 98.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #119      +/-   ##
==========================================
+ Coverage   88.74%   94.72%   +5.98%     
==========================================
  Files          28       44      +16     
  Lines         604     1480     +876     
==========================================
+ Hits          536     1402     +866     
- Misses         68       78      +10
Impacted Files Coverage Δ
codonPython/mesh/tests/test_send_message.py 100% <100%> (ø)
...odonPython/mesh/tests/test_check_message_status.py 100% <100%> (ø)
codonPython/mesh/tests/test_download_message.py 100% <100%> (ø)
...odonPython/mesh/tests/test_ack_download_message.py 100% <100%> (ø)
codonPython/mesh/tests/test_check_inbox_count.py 100% <100%> (ø)
...odonPython/mesh/tests/test_check_authentication.py 100% <100%> (ø)
codonPython/mesh/tests/conftest.py 100% <100%> (ø)
...onPython/mesh/tests/test_generate_authorization.py 100% <100%> (ø)
codonPython/mesh/mesh.py 100% <100%> (ø)
codonPython/mesh/tests/test_send_file.py 100% <100%> (ø)
... and 22 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 446180c...f1deca8. Read the comment docs.

@murd0 murd0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Perfect. Thanks for the time you've spent on this.

@murd0 murd0 merged commit 7c4236f into codonlibrary:dev Mar 10, 2020
@murd0 murd0 mentioned this pull request Apr 20, 2020
georgeRobertson pushed a commit that referenced this pull request Apr 20, 2020
* MESH API interface (#119)

* Migrate across MESH api connection scripts and teses

* Add MESH to documentation and adding example usage

* Include dataclasses in requirements for py3.6

* Update tests to match new return structure

* Fix flake8 issues

* Add tests for early halt if entire inbox errors

* Additional error test cases to get coverage to 100

* Various header fixes due to undocumented API behaviour

Co-authored-by: Chris Daniels <CHDA5@hscic.gov.uk>

* v0.2.3

* Change test import to reflect reindexing

Co-authored-by: Khoross <31031340+Khoross@users.noreply.github.com>
Co-authored-by: Chris Daniels <CHDA5@hscic.gov.uk>
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.

2 participants