diff --git a/README.md b/README.md index 3ba423f..5cd6352 100644 --- a/README.md +++ b/README.md @@ -286,6 +286,11 @@ python -m extract_otp_secrets ``` ``` + +https://stackoverflow.com/questions/13685920/install-specific-git-commit-with-pip +-e for egg +pip install -e git+ + # pip install -e git+https://github.com/scito/extract_otp_secret_keys@$(git ls-remote git@github.com:scito/extract_otp_secret_keys@support_img_read.git | head -1 | awk '{print $1;}')#egg=extract_otp_secrets pip3.11 install -e git+https://github.com/scito/extract_otp_secret_keys.git@$(git ls-remote git@github.com:scito/extract_otp_secret_keys.git | grep support_img_read | head -1 | awk '{print $1;}')#egg=extract_otp_secrets python -m extract_otp_secrets diff --git a/tests/extract_otp_secrets_test.py b/tests/extract_otp_secrets_test.py index 518762a..dd55532 100644 --- a/tests/extract_otp_secrets_test.py +++ b/tests/extract_otp_secrets_test.py @@ -351,6 +351,7 @@ def test_normalize_bytes() -> None: 'Before\\\\302\\\\277\\\\303\nname: enc: \\302\\277\\303\\244\\303\\204\\303\\251\\303\\211?\nAfter') == 'Before\\\\302\\\\277\\\\303\nname: enc: ¿äÄéÉ?\nAfter' +@pytest.mark.skip(sys.platform.startswith("win"), reason="Avoid encoding problems") def test_extract_verbose(capsys: pytest.CaptureFixture[str], relaxed: bool) -> None: # Act extract_otp_secrets.main(['-v', 'example_export.txt']) diff --git a/tests/extract_otp_secrets_txt_unit_test.py b/tests/extract_otp_secrets_txt_unit_test.py index b40ba63..6e1c19b 100644 --- a/tests/extract_otp_secrets_txt_unit_test.py +++ b/tests/extract_otp_secrets_txt_unit_test.py @@ -171,7 +171,8 @@ Type: totp self.assertEqual(count_files_in_dir('testout/qr'), 6) def test_extract_verbose(self) -> None: - if sys.implementation.name == 'pypy': self.skipTest("Encoding problems in verbose mode in pypy.") + if sys.implementation.name == 'pypy' or sys.platform.startswith("win"): + self.skipTest("Avoid encoding problems") out = io.StringIO() with redirect_stdout(out): extract_otp_secrets.main(['-v', 'example_export.txt'])