datalad / datalad-xnat

Track XNAT projects with DataLad
Other
3 stars 9 forks source link

TST: Add test for _XNAT #117

Closed bpoldrack closed 2 years ago

bpoldrack commented 2 years ago

Add a couple of assertions on the level of the _XNAT class against XNAT central. This should allow to test some low-level behavior more easily than going through the command-level functions.

Also introduces constants to be used w/ other tests against XNAT central, which should make it easier to get to more flexible unittests that may eventually be used against different target instances.

codecov-commenter commented 2 years ago

Codecov Report

Merging #117 (5f85b88) into master (74b54ed) will increase coverage by 1.85%. The diff coverage is 100.00%.

:exclamation: Current head 5f85b88 differs from pull request most recent head 6890297. Consider uploading reports for the commit 6890297 to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##           master     #117      +/-   ##
==========================================
+ Coverage   84.97%   86.82%   +1.85%     
==========================================
  Files          11       11              
  Lines         346      372      +26     
==========================================
+ Hits          294      323      +29     
+ Misses         52       49       -3     
Impacted Files Coverage Δ
datalad_xnat/tests/test_xnatcentral.py 100.00% <100.00%> (ø)
datalad_xnat/platform.py 82.97% <0.00%> (+3.19%) :arrow_up:

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 74b54ed...6890297. Read the comment docs.