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

ghga-de / ghga-service-commons
0%
main: 92%

Build:
Build:
LAST BUILD BRANCH: 5.1.0
DEFAULT BRANCH: main
Repo Added 08 Mar 2023 04:17PM UTC
Token mIco8Laz18uB5uW5Xz3yBgUWtmxhd5K9I regen
Build 325 Last
Files 37
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

LAST BUILD ON BRANCH 0.6.0
branch: 0.6.0
CHANGE BRANCH
x
Reset
Sync Branches
  • 0.6.0
  • 0.1.0
  • 0.2.0
  • 0.2.1
  • 0.2.2
  • 0.3.0
  • 0.3.1
  • 0.3.2
  • 0.4.0
  • 0.4.1
  • 0.4.2
  • 0.4.3
  • 0.5.0
  • 0.7.0
  • 0.7.1
  • 0.8.0
  • 1.0.0
  • 1.0.1
  • 1.1.0
  • 1.1.1
  • 1.2.0
  • 1.3.0
  • 2.0
  • 2.0.0
  • 2.0.1
  • 3.0.0
  • 3.0.1
  • 3.0.2
  • 3.0.3
  • 3.0.4
  • 3.1.0
  • 3.1.1
  • 3.1.2
  • 3.1.3
  • 3.1.4
  • 3.1.5
  • 3.1.6
  • 3.1.7
  • 3.2.0
  • 3.3.0
  • 3.4.0
  • 3.4.1
  • 4.0.0
  • 4.1.0
  • 4.1.1
  • 4.1.2
  • 5.0.0
  • 5.1.0
  • explore_tz_aware_dates_pydantic_v2_GSI-418
  • feature/adapt-auth-context-for-2fa-GSI-576
  • feature/add-auth-provider-GDEV-1698
  • feature/add-crypt-utils-GSI-97
  • feature/add-files-utils
  • feature/add-ghga-specific-auth-GDEV-1768
  • feature/add-note-on-asyncnullcontext
  • feature/add-py-typed-GSI-713
  • feature/add-test-for-configuring-cors
  • feature/add-tests-for-auth-support-GDEV-1728
  • feature/add_endpoint_mocking_class_GSI-322
  • feature/add_general_exception_handling_GSI-331
  • feature/async_test_client_GSI-99
  • feature/bump_httpyexpect
  • feature/check-user-status-in-auth
  • feature/cid_propagation_GSI-1225
  • feature/common_crypt4gh_GSI-248
  • feature/configure-exposed-headers-gsi-1761
  • feature/configure_uvicorn_GSI-528
  • feature/copy-used-parts-from-chassis-lib-GDEV-1684
  • feature/correlation_ids_GSI-500
  • feature/di_uitls_GSI-433
  • feature/fix-expose-headers
  • feature/hexkit_v4_upgrade_GSI-1332
  • feature/hexkit_v6_GSI-1712
  • feature/improve-docstrings-and-comments
  • feature/integrate_httpyexpect_GSI-259
  • feature/log_request_duration_GSI-1220
  • feature/minor-fixes-and-updates
  • feature/multiple-user-roles-in-token-gsi-1484
  • feature/proper-auth-status-codes-GSI-688
  • feature/pydantic_v2_GSI-337
  • feature/secondardy-python-in-dockerfile
  • feature/support-python313-gsi-1854
  • feature/test-with-tox-GSI-712
  • feature/trim-root-path
  • feature/update-and-use-asynctestclient
  • feature/update-fastapi
  • feature/update-hexkit
  • feature/update-httpyexpect
  • feature/update-year-of-copyright
  • feature/update_fastapi_GSI-223
  • feature/update_hexkit
  • feature/update_pypi_publish_GSI-376
  • feature/use_ruff_pip_tools_GSI-336
  • feature/uvicorn_turnaround_time_logs_GSI-1220
  • feature/verify-id-in-internal-token
  • feature/x_request_id_GSI-681
  • fix/500_exception_handler
  • fix/adapt-github-actions
  • fix/badge-for-tests
  • fix/bump_httpyexpect
  • fix/datetime_utc_json_schema
  • fix/duplicate-traceback-gsi-1473
  • fix/example_api
  • fix/fastapi_update_backport
  • fix/fix-publish-workflow
  • fix/issue-with-typing-extensions-460
  • fix/pypi-publishing
  • fix/update_fastapi
  • fix_export_typo
  • main
  • multinode_storage_config_GSI-374
  • roll_back_pytest-httpx
  • security/update_fastapi_to_0-115-3
  • simple_auth_token_utils_GSI-221
  • update_pypi_GSI-292
  • use_perf_timer
  • v2_backports

23 Aug 2023 09:09AM UTC coverage: 0.0%. Remained the same
5949388439

push

github

web-flow
MockRouter class (GSI-322) (#18)

* Add endpoints handler class in new module

* Set up a testing mock api

* Add tests

* Add basic endpoint with no variables

* Extend description of get_endpoint_2

Turn tuple into list in response json

* Raise HttpException when type casting fails

* Raise HttpException 404 when no path matches URL

* Replace URL sort with end-of-string regex symbol

* Define http exception handler signature explicitly

* Rename endpoints in mock_api

* Do minor simplification on mock api

* Move two static methods out of class

Rename url in decorators to path

* Prefix exception_handler with http_

* Store endpoint function annotation in endpoint obj

* Validate endpoint type hinting upon registration

* Verify decorator path matches endpoint function

* Break get_function_and_parameters into 2 functions

* Update convert_parameter_types

* Update doc strings and specify __all__

* Add tests for endpoint validation

* Make minor doc updates in test module

* Make refactoring changes

* Bump version number from 0.5.0 -> 0.6.0

* Rename to MockRouter because it makes more sense

* Remove weird conditional assignment

* Update bad copy-pasted docstring

* Factor out str(url) and rename validation function

* Include sanity checks for cross-method routing

---------

Co-authored-by: TheByronHimes <TheByronHimes@gmail.com>

106 of 106 new or added lines in 2 files covered. (100.0%)

0 of 668 relevant lines covered (0.0%)

0.0 hits per line

Relevant lines Covered
Build:
Build:
668 RELEVANT LINES 0 COVERED LINES
0.0 HITS PER LINE
Source Files on 0.6.0
  • Tree
  • List 31
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
5949388439 0.6.0 MockRouter class (GSI-322) (#18) * Add endpoints handler class in new module * Set up a testing mock api * Add tests * Add basic endpoint with no variables * Extend description of get_endpoint_2 Turn tuple into list in response jso... push 23 Aug 2023 09:15AM UTC web-flow github
0.0
See All Builds (263)

Badge your Repo: ghga-service-commons

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo 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