openzim / python-scraperlib

Collection of Python code to re-use across Python-based scrapers
GNU General Public License v3.0
17 stars 16 forks source link

Add back a runinstalled marker for ogvjs tests #166

Closed benoit74 closed 3 weeks ago

benoit74 commented 3 weeks ago

Fix #139

Before 3.3, there was a --runinstalled switch for tests to disable by default the execution of some tests which were deemed to work only if the package tools were installed.

In 3.3.0, we assumed this switch was not necessary anymore before with new Python bootstrap convention, we are always in installed mode.

This statement was indeed wrong because some persons are building and testing without using our build chain (e.g. they build and test directly from sdist).

This PR adds back the --runinstalled switch for tests and corresponding pytest marker to mark tests that are going to work only if package tools are installed.

This PR also implements Python bootstrap 1.0.2 and missing classifiers in Python project

codecov[bot] commented 3 weeks ago

Codecov Report

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

Project coverage is 100.00%. Comparing base (7d49831) to head (1760941).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #166 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 32 32 Lines 1393 1393 Branches 240 240 ========================================= Hits 1393 1393 ```

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