Don't like ads? PRO users don't see any ads ;-)
Guest

lol

By: a guest on Aug 7th, 2012  |  syntax: Python  |  size: 0.18 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import os
  2. import flaskr
  3. import unittest
  4. import tempfile
  5.  
  6. class FlaskrTestCase(unittest.TestCase):
  7.  
  8.         def setUp(self):
  9.                 self.db_fd, flaskr.app.config["DATABASE"] = tempfile.mkstemp()