Skip to content

raise error on import module fixes #21#31

Merged
tobymao merged 2 commits intomainfrom
toby/raise_import
Dec 8, 2022
Merged

raise error on import module fixes #21#31
tobymao merged 2 commits intomainfrom
toby/raise_import

Conversation

@tobymao
Copy link
Copy Markdown
Contributor

@tobymao tobymao commented Dec 8, 2022

No description provided.


def test_serialize_env_error() -> None:
with pytest.raises(SQLMeshError) as e:
serialize_env({"pandas": pd}, module="pandas")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This wouldn't apply to pandas though right since that is a third party module?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yea, but this test pretends like we are pandas

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yeah it just could be confusing for future people reading this. Maybe make a comment explaining that.

@tobymao tobymao enabled auto-merge (squash) December 8, 2022 20:02
@tobymao tobymao merged commit 5600c85 into main Dec 8, 2022
@tobymao tobymao deleted the toby/raise_import branch December 8, 2022 20:13
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