Skip to content

Commit

Permalink
return nothing on schema get
Browse files Browse the repository at this point in the history
  • Loading branch information
guidopetri committed Aug 31, 2023
1 parent 126e7e5 commit d600a4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/models/test_data_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def test_expires_schema(self, mock_redis):
expected_ttl = 606600

with mock.patch("redash.query_runner.pg.PostgreSQL.get_schema") as patched_get_schema:
patched_get_schema.return_value = None
data_source = self.factory.data_source.get_schema(refresh=True)

mock_redis.assert_called_with(data_source._schema_key, ex=expected_ttl)
Expand Down

0 comments on commit d600a4b

Please sign in to comment.