flathub-infra / flatpak-external-data-checker

A tool for checking if the external data used in Flatpak manifests is still up to date
GNU General Public License v2.0
115 stars 34 forks source link

Tests are absurdly slow due to massive network requests #394

Open wjt opened 11 months ago

wjt commented 11 months ago

The full test suite takes many minutes to run, and performs multiple gigabytes of network requests. The worst offender is test_chromiumchecker.py because this test involves downloading a chromium source tarball – more than 3 GiB.

wjt commented 11 months ago

I tried to use aioresponses https://github.com/pnuckowski/aioresponses but I am apparently not smart enough to make this work. The mock object gets stopped too early for reasons I don't understand.