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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI test for generating migrations #31

Merged
merged 2 commits into from
Jun 11, 2016
Merged

Add CLI test for generating migrations #31

merged 2 commits into from
Jun 11, 2016

Conversation

karenc
Copy link
Owner

@karenc karenc commented Apr 23, 2016

@pumazi If this looks ok, since it's only one commit, could you use the merge button that squashes the commit? 馃槃

@coveralls
Copy link

Coverage Status

Coverage increased (+2.6%) to 92.643% when pulling d5c8c2d on tests into 000b466 on master.

def test_migrations_directory_does_not_exist(self, timestamp):
timestamp.return_value = '20160423231932'
filename = '{}_a_new_migration.py'.format(timestamp())
expected_path = '/tmp/dbmigrator-tests/m/{}'.format(filename)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Possibly better to use the standard library's tempfile for windows compatibility? But then again, I see you ref /tmp in many places. So maybe something to address when and if the need arises.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yes of course, I got used to just using /tmp. Fixed.

@coveralls
Copy link

Coverage Status

Coverage increased (+2.6%) to 92.719% when pulling 6ffaee0 on tests into 000b466 on master.

@coveralls
Copy link

coveralls commented Apr 24, 2016

Coverage Status

Coverage increased (+2.7%) to 92.741% when pulling 7f44165 on tests into 000b466 on master.

@karenc
Copy link
Owner Author

karenc commented Apr 26, 2016

I'm not sure how to fix the travis failure 馃槕

@coveralls
Copy link

coveralls commented Jun 10, 2016

Coverage Status

Coverage increased (+2.2%) to 92.296% when pulling ca1ac7c on tests into 5f1d9c3 on master.

@coveralls
Copy link

coveralls commented Jun 10, 2016

Coverage Status

Coverage increased (+2.6%) to 92.73% when pulling ce26dc6 on tests into 5f1d9c3 on master.

@karenc karenc merged commit ce26dc6 into master Jun 11, 2016
@karenc karenc deleted the tests branch June 11, 2016 20:23
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.

None yet

3 participants