mirror of
https://github.com/scito/extract_otp_secret_keys.git
synced 2025-12-07 15:25:06 +01:00
skip verbose tests for pypy
This commit is contained in:
parent
8ba4439305
commit
65c52f4d81
2 changed files with 4 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ from utils import read_csv, read_csv_str, read_json, read_json_str, remove_files
|
||||||
from os import path
|
from os import path
|
||||||
from pytest import raises, mark
|
from pytest import raises, mark
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
from sys import platform
|
from sys import implementation
|
||||||
|
|
||||||
import extract_otp_secret_keys
|
import extract_otp_secret_keys
|
||||||
|
|
||||||
|
|
@ -306,6 +306,7 @@ def test_extract_saveqr(capsys):
|
||||||
cleanup()
|
cleanup()
|
||||||
|
|
||||||
|
|
||||||
|
@mark.skipif(implementation.name == 'pypy', reason="Encoding problems in verbose mode in pypy.")
|
||||||
def test_extract_verbose(capsys):
|
def test_extract_verbose(capsys):
|
||||||
# Act
|
# Act
|
||||||
extract_otp_secret_keys.main(['-v', 'example_export.txt'])
|
extract_otp_secret_keys.main(['-v', 'example_export.txt'])
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ import io
|
||||||
from contextlib import redirect_stdout
|
from contextlib import redirect_stdout
|
||||||
from utils import read_csv, read_json, remove_file, remove_dir_with_files, Capturing, read_file_to_str
|
from utils import read_csv, read_json, remove_file, remove_dir_with_files, Capturing, read_file_to_str
|
||||||
from os import path
|
from os import path
|
||||||
from sys import platform
|
from sys import implementation
|
||||||
|
|
||||||
import extract_otp_secret_keys
|
import extract_otp_secret_keys
|
||||||
|
|
||||||
|
|
@ -166,6 +166,7 @@ Type: totp
|
||||||
self.assertTrue(path.isfile('testout/qr/4-piraspberrypi-raspberrypi.png'))
|
self.assertTrue(path.isfile('testout/qr/4-piraspberrypi-raspberrypi.png'))
|
||||||
|
|
||||||
def test_extract_verbose(self):
|
def test_extract_verbose(self):
|
||||||
|
if implementation.name == 'pypy': self.skipTest("Encoding problems in verbose mode in pypy.")
|
||||||
out = io.StringIO()
|
out = io.StringIO()
|
||||||
with redirect_stdout(out):
|
with redirect_stdout(out):
|
||||||
extract_otp_secret_keys.main(['-v', 'example_export.txt'])
|
extract_otp_secret_keys.main(['-v', 'example_export.txt'])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue