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(tests): set lower for case sensitive system #805

Merged
merged 1 commit into from
Jan 8, 2023

Conversation

gabriel-tessier
Copy link
Collaborator

When running tests for c4 the setUp() initialize a name variable that is used as name parameter for Diagram() class.
The name variable generated have upper case. ex: "diagram-e1Ad2eF"

In Diagram class when name parameter is provided it's used to generate a file in lower case.
filename = "_".join(self.name.split()).lower()
So when the tearDown is called and ask to remove the file using self.name with upper case, the file are not found so not removed.
os.remove(self.name + ".png")

It may work in windows as windows is case insensitive but not for linux.

mingrammer
mingrammer approved these changes Jan 8, 2023
@mingrammer
Copy link
Owner

Can you re-run the tests?

@mingrammer
Copy link
Owner

There was an ubuntu version update (the default value of ubuntu-latest was updated to 22.04), so the test fails. So I fixed the ubuntu version to 20.04. Then, you should rebase the master to fix it.

@mingrammer
Copy link
Owner

The above issue will be resolved automatically after the merge.

@mingrammer mingrammer merged commit 751a054 into mingrammer:master Jan 8, 2023
ajmaradiaga pushed a commit to ajmaradiaga/diagrams that referenced this pull request Nov 8, 2023
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