mirror of
https://github.com/scito/extract_otp_secret_keys.git
synced 2025-12-08 07:45:01 +01:00
ci: setup testing for linux, macos and windows platforms
- fix ci for windows: remove bash if/fi - exlucde failing test from windows - enable scheduled tests - use --use-pep517 for pip install: avoid deprecation message - exlcude windows-latest and pypy-3.9 since there is a problem with installing (missing zlib.h)
This commit is contained in:
parent
ca4a0bc7d2
commit
7af631ff1e
4 changed files with 62 additions and 14 deletions
|
|
@ -23,6 +23,7 @@ import io
|
|||
from contextlib import redirect_stdout
|
||||
from utils import read_csv, read_json, remove_file, remove_dir_with_files, Capturing, read_file_to_str
|
||||
from os import path
|
||||
from sys import platform
|
||||
|
||||
import extract_otp_secret_keys
|
||||
|
||||
|
|
@ -139,6 +140,7 @@ Type: totp
|
|||
self.assertEqual(actual_output, expected_output)
|
||||
|
||||
def test_extract_printqr(self):
|
||||
if platform.startswith("win"): self.skipTest("This test is not supported on Windows.")
|
||||
out = io.StringIO()
|
||||
with redirect_stdout(out):
|
||||
extract_otp_secret_keys.main(['-p', 'example_export.txt'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue