Skip to content

Commit

Permalink
set _updated default value to False
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Palazzo committed Feb 13, 2024
1 parent e2e031b commit 18ee971
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions sdv/metadata/single_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def __init__(self):
self.sequence_index = None
self.column_relationships = []
self._version = self.METADATA_SPEC_VERSION
self._updated = None
self._updated = False

def _validate_unexpected_kwargs(self, column_name, sdtype, **kwargs):
expected_kwargs = self._SDTYPE_KWARGS.get(sdtype, ['pii'])
Expand Down Expand Up @@ -1082,7 +1082,6 @@ def load_from_json(cls, filepath):
'class and version.'
)

cls._updated = False
return cls.load_from_dict(metadata)

def __repr__(self):
Expand Down
1 change: 1 addition & 0 deletions tests/unit/metadata/test_single_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def test___init__(self):
assert instance.alternate_keys == []
assert instance.sequence_index is None
assert instance._version == 'SINGLE_TABLE_V1'
assert instance._updated is False

def test__validate_numerical_default_and_invalid(self):
"""Test the ``_validate_numerical`` method.
Expand Down

0 comments on commit 18ee971

Please sign in to comment.