Skip to content

Tests don't run on non-Darwin platforms #2318

@cincodenada

Description

@cincodenada

Description

When I try to run pytest on non-Dariwn platforms, it immediately fails out with the following error:

________________________________ ERROR collecting tests/network_manager/test_darwin.py ________________________________
ImportError while importing test module '/home/ell/clone/vorta/tests/network_manager/test_darwin.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/network_manager/test_darwin.py:5: in <module>
    from vorta.network_status import darwin
src/vorta/network_status/darwin.py:5: in <module>
    from CoreWLAN import CWInterface, CWNetwork, CWWiFiClient
E   ModuleNotFoundError: No module named 'CoreWLAN'

Reproduction

  • I tried to reproduce the issue.
  • I was able to reproduce the issue.

OS

Ubuntu 24.04, xfce

Version of Vorta

0.11

What did you install Vorta with?

Other

Version of Borg

1.4.0

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions