kivy / python-for-android

Turn your Python application into an Android APK
https://python-for-android.readthedocs.io
MIT License
8.06k stars 1.8k forks source link

:white_check_mark: Fix test_get_dep_names_of_package #2979

Closed AndreMiras closed 2 months ago

AndreMiras commented 2 months ago

Recent pythonf-for-android release added setuptools to install_requires. Pinning to previous release fixes to test.

The error was:

    def test_get_dep_names_of_package():
        # TEST 1 from external ref:
        # Check that colorama is returned without the install condition when
        # just getting the names (it has a "; ..." conditional originally):
        dep_names = get_dep_names_of_package("python-for-android")
        assert "colorama" in dep_names
>       assert "setuptools" not in dep_names
E       AssertionError: assert 'setuptools' not in {'Jinja2', 'appdirs', 'build', 'colorama', 'packaging', 'setuptools', ...}
tests/test_pythonpackage_basic.py:90: AssertionError