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

Added tests and fix dbrestore command #73

Merged
merged 1 commit into from
Jul 31, 2015

Conversation

ZuluPro
Copy link
Contributor

@ZuluPro ZuluPro commented Jul 30, 2015

For tests:

  • Added file fixture: the same file raw, compressed, encrypted and both
  • Added django.utils.six for deal with Python 2/3
  • Use Bytes mode to file read/write (for Python 3)
  • Skip tests in Python3, only those which didn't work
  • Added possibility to launch a shell instead of tests

For source code:

  • Use Bytes mode to file read/write (for Python 3)
  • Changed print to self.stdout (again ;) )

@benjaoming
Copy link
Contributor

Great work!! Could you do a merge with current master?

@ZuluPro
Copy link
Contributor Author

ZuluPro commented Jul 31, 2015

I just made a git pull --rebase from your master.
It includes my commit without make a merge.

I edited some lines for new commits. No deleting.

@@ -112,7 +107,7 @@ def uncompress_file(self, inputfile):
outputfile = tempfile.SpooledTemporaryFile(
max_size=500 * 1024 * 1024,
dir=dbbackup_settings.TMP_DIR)
zipfile = gzip.GzipFile(fileobj=inputfile, mode="r")
zipfile = gzip.GzipFile(fileobj=inputfile, mode="rb")
Copy link
Contributor

Choose a reason for hiding this comment

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

that looks like an important catch!

@benjaoming
Copy link
Contributor

Awesome work!

benjaoming added a commit that referenced this pull request Jul 31, 2015
Added tests and fix dbrestore command
@benjaoming benjaoming merged commit b64552b into jazzband:master Jul 31, 2015
@ZuluPro ZuluPro deleted the test_dbrestore branch November 10, 2018 02:27
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

2 participants