• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HEPData / hepdata-cli / 57
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: mh-returnFindAsList
DEFAULT BRANCH: master
Ran 15 Jul 2020 01:57PM UTC
Jobs 4
Files 5
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
57

push

travis-ci

web-flow
Upload feature (#2)

* New upload cli and api function, working with sandbox only atm.

* Extended upload functionality to include non-sandbox records. Needs to match email and invitation cookie. Reduced run time of older tests by limiting MAX_MATCHES to 100 when called from pytest.

* Added mocked test for upload, updated README with upload function. Slight stability improvement in download tests.

* Adding missing test requirement requests_mock

* Changed sandbox upload endpoint

* Uploading directly to /consume endpoints

* Updated upload test

* Merged changes from master

* Removed need for '.split()' of 'id_list' when using the Python API. Slightly improved test coverage. Updated Readme. Added single .yaml and .yaml.gz submission test files.

* Trying tests

* docs: add some more detail about upload feature to README and docstrings

* tests: use https rather than http in upload test since SITE_URL changed

* requests timeout feature combined with retry one into 'resilient_requests' module; added a timeout test; switched off traceback with a flag, to improve readability for end-user.

* 'builtins' module is provided by 'future' pypi package, not 'builtins'

* Expanded raise for status to display reason of failure

* upload: print location of record after a successful upload request

* Also change version to 0.2.0 instead of 0.1.1 since new functionality.

* Extended coverage, mainly new test to check handling of HTTP exceptions

* Upload requires login

* Updated tests with pytest.raises

* HTTP error reason from .json()['message'] instead of string parsing

* Updated password input method, updated tests

* Updated endpoint

* README: add some explanation that a password is required to upload

* Slightly improved coverage

* Removed debugging print function

Co-authored-by: Graeme Watt <Graeme.Watt@durham.ac.uk>

75 of 75 new or added lines in 4 files covered. (100.0%)

195 of 201 relevant lines covered (97.01%)

3.88 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
hepdata_cli/resilient_requests.py
Jobs
ID Job ID Ran Files Coverage
1 57.1 15 Jul 2020 01:57PM UTC 0
97.01
Travis Job 57.1
2 57.2 15 Jul 2020 01:57PM UTC 0
97.01
Travis Job 57.2
3 57.3 15 Jul 2020 01:58PM UTC 0
97.01
Travis Job 57.3
4 57.4 15 Jul 2020 01:58PM UTC 0
97.07
Travis Job 57.4
Source Files on build 57
  • Tree
  • List 5
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #57
  • 04b6abbe on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc