Skip to content

Instantly share code, notes, and snippets.

@rj76
Created July 27, 2019 09:51
Show Gist options
  • Save rj76/6859677f1d9335e94de06234488b09f5 to your computer and use it in GitHub Desktop.
Save rj76/6859677f1d9335e94de06234488b09f5 to your computer and use it in GitHub Desktop.
Try to automate pytest --create-db
# pre commit
find apps -type d -name migrations -exec ls -1 '{}' ';' | md5sum > md5sum
git add md5sum -m 'updated md5sum'
# before test
find apps -type d -name migrations -exec ls -1 '{}' ';' | md5sum | diff md5sum -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment