Skip to content

fix: use distinct names for input views when testing models#537

Merged
izeigerman merged 1 commit intomainfrom
streamline-tests
Mar 15, 2023
Merged

fix: use distinct names for input views when testing models#537
izeigerman merged 1 commit intomainfrom
streamline-tests

Conversation

@izeigerman
Copy link
Contributor

No description provided.

@izeigerman izeigerman requested review from a team, tobymao and vchan March 15, 2023 17:52
mapping = {name: name for name in snapshots}
mapping = {name: _test_fixture_name(name) for name in snapshots}
if mapping:
self.query = exp.replace_tables(self.query, mapping)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this blindly replacing every table? isn't that problematic as we discussed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, since tables are prefixed with a schema name and CTEs are not.

@izeigerman izeigerman merged commit 7ab806d into main Mar 15, 2023
@izeigerman izeigerman deleted the streamline-tests branch March 15, 2023 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants