From 7f4758fafb80055a7428239f54b25c32fa19be1d Mon Sep 17 00:00:00 2001 From: ejseqera Date: Tue, 11 Jul 2023 08:44:19 -0400 Subject: [PATCH] test: remove deprecated integration tests for pipelines class --- tests/integration/__init__.py | 1 - tests/integration/test_pipelines.py | 26 -------------------------- 2 files changed, 27 deletions(-) delete mode 100644 tests/integration/__init__.py delete mode 100644 tests/integration/test_pipelines.py diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py deleted file mode 100644 index 5c63a65..0000000 --- a/tests/integration/__init__.py +++ /dev/null @@ -1 +0,0 @@ -# Empty __init__.py file diff --git a/tests/integration/test_pipelines.py b/tests/integration/test_pipelines.py deleted file mode 100644 index d963917..0000000 --- a/tests/integration/test_pipelines.py +++ /dev/null @@ -1,26 +0,0 @@ -import pytest -import json -from tw_py import Pipelines - -# Runs actual integration tests with subprocess and real workspaces -# to test the Pipelines() class and validate that the methods work on CLI - - -def test_get_list_json(): - """ - Integration test for the get_list method with json = true for Pipelines() class. - This test runs the method on an actual workspace and checks for a real - JSON response. - """ - # Instantiate Pipelines class with a test workspace name - # TODO: We might want to set this to scidev/showcase - pipelines_instance = Pipelines("scidev/testing") - - # Run get_list() method with json = true - result = pipelines_instance.get_list(to_json=True) - - # Check if result is a valid JSON - try: - json.loads(result) - except json.JSONDecodeError: - pytest.fail("get_list() did not return a valid JSON")