mirror of
https://github.com/cryptoadvance/specter-desktop.git
synced 2026-08-13 12:33:29 +02:00
* add spectrum * rc3 of spectrum * spectrum rc4 * missing __init__.py * changes for rc6 * make cli-arguments work in electron * update spectrum to remove simplejson * Bugfix devices not shown * additional checks for wallet_import * nodes template magic to improve extensibility * smaller bugfixes * update spectrum * keep python 3.9 in pre-commit-yaml * specter_added_to_flask_app callback added * useful logger + avoid writing to config with no node alias * Using FlaskThread * remove overriding chain property in node.py * nodes_by_chain method added to node mananger * icons for spectrum setup * keep external_node and fix test * bump spectrum version * more visibility * deactivate checker_threads for testing Co-authored-by: k9ert <kim@swanbitcoin.com> Co-authored-by: Manolis Mandrapilias <70536101+moneymanolis@users.noreply.github.com> Co-authored-by: moneymanolis <moneymanolis@protonmail.com>
34 lines
869 B
Python
34 lines
869 B
Python
""" The tests in this file are built to intentionally fail in order to test the
|
|
functionality in the conf_visibility pytest plugin
|
|
|
|
Therefore, the tests are skipped
|
|
"""
|
|
import os
|
|
import pytest
|
|
import threading
|
|
import time
|
|
|
|
from cryptoadvance.specter.persistence import write_json_file
|
|
|
|
|
|
def thread_function(empty_data_folder):
|
|
fname = os.path.join(empty_data_folder, "some.file")
|
|
for i in range(0, 100000):
|
|
try:
|
|
with open(fname, "w") as f:
|
|
f.write("muh")
|
|
except FileNotFoundError as e:
|
|
print("---------------------\nFileNotFound Error for i = " + str(i))
|
|
raise e
|
|
|
|
|
|
@pytest.mark.skip
|
|
def test_fail(empty_data_folder):
|
|
print(empty_data_folder)
|
|
|
|
t = threading.Thread(
|
|
target=thread_function,
|
|
args=(empty_data_folder,),
|
|
)
|
|
t.start()
|
|
time.sleep(0.08)
|