Skip to content

Instantly share code, notes, and snippets.

@mharju
Created February 9, 2012 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mharju/1778485 to your computer and use it in GitHub Desktop.
Save mharju/1778485 to your computer and use it in GitHub Desktop.
# wat am i doing wrong here?
def setUp(self):
cursor = connection.cursor()
script = open('epic/sql/player.sql').read()
cursor.execute(script)
transaction.commit_unless_managed()
def tearDown(self):
cursor = connection.cursor()
cursor.execute('DROP VIEW epic_players_with_points')
transaction.commit_unless_managed()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment