Skip to content

Commit

Permalink
Improving test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
amontanez24 committed Aug 2, 2024
1 parent f47dbf0 commit 7ddcf42
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tests/unit/multi_table/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,12 @@ def test_preprocess_warning(self, mock_warnings):
)

def test_preprocess_single_table_preprocess_raises_error_0_int_regex(self):
"""Test that if the single table synthesizer raises a specific error, it is reformatted."""
"""Test that if the single table synthesizer raises a specific error, it is reformatted.
If a single table synthesizer raises an error about the primary key being an integer
with a regex that can start with zero, the error should be reformatted to include the
table name.
"""
# Setup
metadata = get_multi_table_metadata()
instance = BaseMultiTableSynthesizer(metadata)
Expand Down Expand Up @@ -945,7 +950,11 @@ def test_preprocess_single_table_preprocess_raises_error_0_int_regex(self):
instance.preprocess(data)

def test_preprocess_single_table_preprocess_raises_error(self):
"""Test that if the single table synthesizer raises any other error, it is raised."""
"""Test that if the single table synthesizer raises any other error, it is raised.
If a single table synthesizer raises an error besides the one concerning int primary keys
starting with 0 and having a regex, then the error should be raised as is.
"""
# Setup
metadata = get_multi_table_metadata()
instance = BaseMultiTableSynthesizer(metadata)
Expand Down

0 comments on commit 7ddcf42

Please sign in to comment.