Skip to content

Commit

Permalink
Remove some commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
wvangeit committed Nov 22, 2024
1 parent 8f771df commit 39a8756
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions tests/functional/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@


def test_read_json(tmp_path):

test_json_path = tmp_path / "test.json"

test_json_data = {"test": "data"}
test_json_path.write_text(json.dumps(test_json_data))

assert tools.load_json(test_json_path, wait=False) == test_json_data

def test_wait_for_path(tmp_path):

def test_wait_for_path(tmp_path):
test_path = tmp_path / "test.json"

executor = futures.ProcessPoolExecutor(max_workers=1)
Expand All @@ -29,32 +28,7 @@ def test_wait_for_path(tmp_path):
test_path.write_text("test")

time.sleep(1)

assert wait_future.done()

executor.shutdown(wait=False, cancel_futures=True)

# test_json_data = {"test": "data"}
# test_json_path.write_text(json.dumps(test_json_data))
#
# assert tools.load_json(test_json_path, wait=False) == test_json_data

# test_input_dir = tmp_path / "test_input_dir"
# test_output_dir = tmp_path / "test_output_dir"
# test_input_dir.mkdir()
# test_output_dir.mkdir()
#
# initiator_uuid = str(uuid.uuid4())
# receiver_uuid = str(uuid.uuid4())
#
# initiator_other_uuid = executor.submit(
# run_handshake, initiator_uuid, test_input_dir, test_output_dir, True
# )
# receiver_other_uuid = executor.submit(
# run_handshake, receiver_uuid, test_output_dir, test_input_dir, False
# )
#
# executor.shutdown()
#
# assert initiator_other_uuid.result() == receiver_uuid
# assert receiver_other_uuid.result() == initiator_uuid
executor.shutdown(wait=False, cancel_futures=True)

0 comments on commit 39a8756

Please sign in to comment.