Skip to content

Separate out tests that need network access #30

@worldofpeace

Description

@worldofpeace

Is the progress of being packaged for a Linux Distro NixOS NixOS/nixpkgs#65570, we had to exclude certain tests from the testsuite because they required network access.
Tests in question were:

  • test_check_token_detects_valid_hotp_token
  • test_check_token_detects_valid_totp_token
  • test_check_token_detects_invalid_token

This is because packages are prohibited from being built with network access in NixOS.
You may come to find that in many other Linux distros that it's a very common practice
to want to run tests within the source distribution.
This allows us to test that a package installed successfully with our build expressions and dependencies.
Prohibition of network access on builders is also common, in particular with Fedora
which is quite keen to packaging python libraries.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions