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/#62-reactivate-skipped-multisheet-excel-test #63

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

trgiangdo
Copy link
Member

Resolves #62

Comment on lines -82 to -85
out_dn2.write(None)
assert isinstance(out_dn2.read(), list)
assert len(out_dn2.read()) == 0
assert all(compare_custom_date(custom_data[sheet], out_dn2.read()[sheet]) for sheet in self.SHEETS)
Copy link
Member

Choose a reason for hiding this comment

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

DO we know why this does not work? I believe it is something we want to work, no?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, this is copy pasted from other tests.
On multisheet excel, we can only write data as a dict with keys are sheet name.

Copy link
Member

Choose a reason for hiding this comment

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

How do you write an empty file, then?
out_dn2.write({}) like that?

I would prefer to make it possible to write None data regardless of the datanode storage type or exposed type. I don't know if it is feasible.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, we can have a test that write empty data in a form of a dictionary

Copy link
Member Author

Choose a reason for hiding this comment

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

@jrobinAV We don't have tests that write empty on taipy. What do you think about adding the tests on taipy instead of here?

Copy link
Member

Choose a reason for hiding this comment

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

Makes a lot of sense to me.

Copy link
Member

@toan-quach toan-quach left a comment

Choose a reason for hiding this comment

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

lgtm but tests are failing

@trgiangdo trgiangdo merged commit c127e6e into develop Jul 16, 2024
0 of 16 checks passed
@trgiangdo trgiangdo deleted the fix/#62-reactivate-skipped-multisheet-excel-test branch July 16, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate skipped test test_excel_multi_sheet_custom_exposed_type
3 participants