fideslang icon indicating copy to clipboard operation
fideslang copied to clipboard

Tests break with Pydantic 1.10.0

Open sanders41 opened this issue 2 years ago • 0 comments

Bug Description

With Pydantic 1.10.0 The tests are failing.

    @pytest.mark.unit
    def test_find_referenced_fides_keys_1():
        test_data_category = DataCategory(
            name="test_dc",
            fides_key="key_1.test_dc",
            description="test description",
            parent_key="key_1",
        )
        expected_referenced_key = {"key_1", "key_1.test_dc", "default_organization"}
        referenced_keys = relationships.find_referenced_fides_keys(test_data_category)
>       assert referenced_keys == set(expected_referenced_key)
E       AssertionError: assert {'default_organization', 'key_1.test_dc'} == {'key_1', 'default_organization', 'key_1.test_dc'}
E         Extra items in the right set:
E         'key_1'
E         Full diff:
E         - {'key_1', 'default_organization', 'key_1.test_dc'}
E         ?  ---------
E         + {'default_organization', 'key_1.test_dc'}

Steps to Reproduce

  1. Install pydantic 1.10.0
  2. Run the test suite

Expected behavior

Tests should pass

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  • Version: main branch
  • OS: MacOS and CI
  • Python Version:
  • Docker Version:

Additional context

I have opened a PR to specify pydantic < 1.10.0 for now until we can figure out what the issue is. #79

sanders41 avatar Aug 30 '22 21:08 sanders41