Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(diagrams): Set a dummy filename to prevent raise error when both … #240

Merged
merged 3 commits into from
Jul 23, 2020
Merged

fix(diagrams): Set a dummy filename to prevent raise error when both … #240

merged 3 commits into from
Jul 23, 2020

Conversation

gabriel-tessier
Copy link
Collaborator

…name and filename are not provided(#203)

I added a unit test and linked to the issue it may be more clear than a long description.

Why I did it this way: I think that it's more simple (for usage and human users) to just generate a file with a dummy name than raising an error, as it can generate frustration as people may just open an issue and complain that it's not working.

diagrams/__init__.py Outdated Show resolved Hide resolved
Update default name to "diagrams_image"
Update unit test to reflect the file name change.
Copy link
Owner

@mingrammer mingrammer left a comment

Choose a reason for hiding this comment

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

LGTM!

@mingrammer mingrammer merged commit f260556 into mingrammer:master Jul 23, 2020
@gabriel-tessier gabriel-tessier deleted the empty_name branch July 23, 2020 08:29
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