Skip to content
This repository has been archived by the owner on Jan 18, 2020. It is now read-only.

Fix action argument for the --no-fake option #173

Merged
merged 4 commits into from
Feb 17, 2014

Conversation

murphyke
Copy link
Member

No description provided.

@naegelyd
Copy link
Collaborator

If possible, can you add a test that:

  • fails because of the bad action of the --no-fake argument prior to your fix
  • passes because of your fix

@murphyke
Copy link
Member Author

Whoops, time to add a pyflakes pre-commit hook. I'll also look at adding a unit test.

@bruth
Copy link
Contributor

bruth commented Feb 11, 2014

@murphyke The linter we use is flake8

This test case is not a proper test for the fix, however.  To actually test
the fix, we would have to use a shell command instead of the internal API,
which would necessitate converting TransactionTestCase to TestCase, which
would hose many of the test methods in BackupTestCase.
@murphyke
Copy link
Member Author

@naegelyd, as noted in my commit message, the test case I added addresses the use of the --no-fake switch via the internal API (but that would always have passed anyway). It doesn't actually test the command-line switch processing; to do that, I think I would have to refactor the BackupTestCase class to extend TestCase instead of TransactionTestCase. Is it worth it?

@naegelyd
Copy link
Collaborator

No, don't worry about it.

naegelyd added a commit that referenced this pull request Feb 17, 2014
Fix action argument for the --no-fake option
@naegelyd naegelyd merged commit e4449c9 into chop-dbhi:2.2 Feb 17, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants