Skip to content

Commit

Permalink
fixing linting
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db committed Nov 14, 2023
1 parent db7015b commit 40d6dee
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/functional/adapter/constraints/test_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@


class DatabricksConstraintsBase:
@pytest.fixture
def schema_string_type(self):
return "string"
@pytest.fixture(scope="class")
def schema_string_type(self, string_type):
return string_type

@pytest.fixture
@pytest.fixture(scope="class")
def string_type(self):
return "string"

@pytest.fixture
@pytest.fixture(scope="class")
def int_type(self):
return "int"

@pytest.fixture
def schema_int_type(self):
return "int"
@pytest.fixture(scope="class")
def schema_int_type(self, int_type):
return int_type

@pytest.fixture(scope="class")
def data_types(self):
def data_types(self, schema_int_type, int_type, string_type):
# sql_column_value, schema_data_type, error_data_type
return [
["1", "int", "int"],
['"1"', "string", "string"],
["1", int_type, int_type],
['"1"', string_type, string_type],
["true", "boolean", "boolean"],
['array("1","2","3")', "array<string>", "array"],
["array(1,2,3)", "array<int>", "array"],
Expand Down

0 comments on commit 40d6dee

Please sign in to comment.