Skip to content

Commit acc814a

Browse files
committed
Delete old tests
1 parent 8246861 commit acc814a

File tree

1 file changed

+0
-23
lines changed
  • airbyte-integrations/connectors/source-gcs/unit_tests

1 file changed

+0
-23
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
11
#
22
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
33
#
4-
5-
import unittest
6-
from io import BytesIO
7-
8-
import pandas as pd
9-
from source_gcs.helpers import construct_file_schema
10-
11-
12-
class TestGCSFunctions(unittest.TestCase):
13-
def setUp(self):
14-
# Initialize the mock config
15-
self.config = {"service_account": '{"test_key": "test_value"}', "gcs_bucket": "test_bucket", "gcs_path": "test_path"}
16-
17-
def test_construct_file_schema(self):
18-
# Test that the function correctly constructs a JSON schema for a DataFrame
19-
df = pd.read_csv(BytesIO(b"id,name\n1,Alice\n2,Bob\n3,Charlie\n"))
20-
schema = construct_file_schema(df)
21-
expected_schema = {
22-
"$schema": "http://json-schema.org/draft-07/schema#",
23-
"type": "object",
24-
"properties": {"id": {"type": "string"}, "name": {"type": "string"}},
25-
}
26-
self.assertEqual(schema, expected_schema)

0 commit comments

Comments
 (0)