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

Write metadata separately #19

Merged
merged 10 commits into from
Jun 11, 2018

Conversation

jonocarroll
Copy link
Contributor

Addresses #17.

I originally started just excising the metadata writing part but soon enough realised that you really want a slightly different code path -- diverging before the csv component is written but after the metadata is written. I've added a metadata_only flag to write_csvy to achieve this.

I still split out write_metadata because it's more modular and can be tested independently, and can be used to write a comparable file from a list generated independent of this package.

Added 14 tests, 100% coverage of write_metadata.
Check was like that when I found it... it's not more broken.

I recommend squash on merge.

@leeper leeper merged commit 3e41ba8 into leeper:master Jun 11, 2018
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