csernazs / pytest-httpserver

Http server for pytest to test http clients
MIT License
209 stars 27 forks source link

Add log querying methods #294

Closed csernazs closed 4 months ago

csernazs commented 5 months ago

Add log querying methods for httpserver. This is to query if a request has been made for the server. It also allows to check if the request was made 0, 1 or more times.

The functionality is split to 3 methods for the sake of flexibility, so users who want to check for > or < relations with the numer of request matched can implement their own logic.

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.63%. Comparing base (4900ceb) to head (5a8d55e).

:exclamation: Current head 5a8d55e differs from pull request most recent head ca7c237. Consider uploading reports for the commit ca7c237 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #294 +/- ## ========================================== + Coverage 95.30% 95.63% +0.32% ========================================== Files 4 4 Lines 597 619 +22 ========================================== + Hits 569 592 +23 + Misses 28 27 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.