From 5a2f0b62461c06a2f27b145f7b413ee9da63f8ed Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Sun, 16 Mar 2014 16:27:56 -0300 Subject: [PATCH] test in memory --- tests/users_tests.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/users_tests.py b/tests/users_tests.py index 74c29a7..0e3ce1d 100644 --- a/tests/users_tests.py +++ b/tests/users_tests.py @@ -1,7 +1,6 @@ #!/usr/bin/env python # -*- encoding: utf-8 -*- -import tempfile import unittest import json @@ -12,18 +11,12 @@ class TestUsers(unittest.TestCase): """Test users request.""" def setUp(self): - (_, name) = tempfile.mkstemp() - - server.app.config['SQLITE_FILENAME'] = name + server.app.config['SQLITE_FILENAME'] = ':memory:' server.app.config['TESTING'] = True print server.app.config['SQLITE_FILENAME'] self.app = server.app.test_client() - def tearDown(self): - # os.unlink(server.app.config['SQLITE_FILENAME']) - pass - def test_create_user(self): request = {'username': 'username', 'full_name': 'full name',