summaryrefslogtreecommitdiff
path: root/test/test_api.py
AgeCommit message (Collapse)AuthorFilesLines
2020-02-13Implement general exception handlingScott Bahling1-0/+18
We trap the low level OBS api calls via a callback and check for success. If error returned, parse the OBS error response and raise an exception.
2020-02-12Implement sub-api callbacksoScott Bahling1-0/+16
When an api object makes an API request to the OBS server, in addition to returning the results, it sends a reference to itself to the registered callback function (if set). We use this to track the last api object called so we can access the last raw request response.
2020-02-10Fix get_package_source_versionScott Bahling1-1/+0
2020-02-07Add get_package_source_version()Scott Bahling1-0/+23
2020-02-06Fix get_package_versionScott Bahling1-0/+16
2020-02-06Handle passing bytes to the FileInfo classScott Bahling1-16/+7
Move class to own file and enhance tests
2020-02-03Re-architect the RepoFlags classScott Bahling1-11/+18
We don't need to create flags - just read and parse them from the project meta config. Remove the unneeded functionality and enhance the structure. All flags from a project and package are accessible via a single RepoFlags object.
2020-02-03Reorder arguments to be consistent with get_repo_flagsScott Bahling1-16/+16
2020-02-03Add remove_flag methodScott Bahling1-13/+55
2020-02-01Add set_flag methodScott Bahling1-0/+31
2020-01-31Finish updating unit tests to use requests_mockScott Bahling1-107/+466
2020-01-26Add RepoFlags class and api.get_repo_flags methodScott Bahling1-0/+15
2020-01-25Enhance binaries_ls method to return project level binary listsScott Bahling1-0/+11
2020-01-25Better get_meta testsScott Bahling1-5/+9
2020-01-21PEP8Scott Bahling1-1/+1
2020-01-21Fix some python3 incompatibilitiesScott Bahling1-3/+0
2020-01-21Add get_spec_files methodScott Bahling1-0/+8
2018-08-24Initial user and group methods for ObsApi classScott Bahling1-0/+12
2017-10-04Move test project/package to build.opensuse.orgScott Bahling1-15/+15
2017-02-21Implement locking api; refactor ObsSourceApi get/put/post callsScott Bahling1-0/+24
2016-04-19Update api core to use buildapi and sourceapiobsapi-0.0.5Scott Bahling1-3/+6
2016-03-03Add formatter class and extend FileInfo classScott Bahling1-0/+4
2016-02-21Add test for get_binary_fileinfoScott Bahling1-0/+14
2016-02-21rename source_info method to get_source_infoScott Bahling1-0/+9
Consistency with other get_* methods
2016-02-21rename get_binaries to binaries_lsScott Bahling1-2/+12
Consistency with the other "ls" methods
2015-04-19Update versioneer and add first unit testsobsapi-0.0.3Scott Bahling1-0/+46