-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from poldracklab/oesteban-patch-1
[FIX] Do not pin versions
- Loading branch information
Showing
10 changed files
with
58 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
gunicorn==19.3.0 | ||
eve==0.7.4 | ||
eve-swagger==0.0.7 | ||
gunicorn | ||
eve | ||
eve-swagger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
from eve.tests import TestMinimal | ||
import os | ||
import re | ||
from flask_pymongo import MongoClient | ||
|
||
url = 'mriqc_api' | ||
MONGO_HOST = os.environ.get("MONGODB_HOST", 'mongodb'), | ||
MONGO_PORT = int(os.environ.get("MONGODB_PORT", 27017)) | ||
MONGO_DBNAME = 'test_DB' | ||
|
||
|
||
class settingsTestCase(TestMinimal): | ||
def setUp(self): | ||
return super().setUp(settings_file = './settings.py') | ||
def dropDB(self): | ||
self.connection = MongoClient(MONGO_HOST,MONGO_PORT) | ||
self.connection.drop_database(MONGO_DBNAME) | ||
self.connection.close() | ||
def setupDB(self): | ||
self.connection = MongoClient(MONGO_HOST,MONGO_PORT) | ||
self.connection.drop_database(MONGO_DBNAME) | ||
def testGet(self): | ||
return_json,return_code = self.get(url) | ||
self.assert200(return_code) | ||
def testPost(self): | ||
return_json, return_code = self.post(url, {"cjv": 0.1231231}) | ||
self.assertFalse(self.domain) | ||
self.assertFalse(return_json) | ||
# self.assert200(return_code) | ||
|
||
# class settingsTestCase(TestMinimal): | ||
# def dropDB(self): | ||
# self.connection = MongoClient(MONGO_HOST, MONGO_PORT) | ||
# self.connection.drop_database(MONGO_DBNAME) | ||
# self.connection.close() | ||
def setUp(self): | ||
return super().setUp(settings_file='./settings.py') | ||
|
||
# def setupDB(self): | ||
# self.connection = MongoClient(MONGO_HOST, MONGO_PORT) | ||
# self.connection.drop_database(MONGO_DBNAME) | ||
# def testPost(): | ||
# return_json, return_code = self.post(url,{"cjg":0.123123}) | ||
# print(return_json) | ||
# print(return_code) | ||
def dropDB(self): | ||
self.connection = MongoClient(MONGO_HOST, MONGO_PORT) | ||
self.connection.drop_database(MONGO_DBNAME) | ||
self.connection.close() | ||
|
||
def setupDB(self): | ||
self.connection = MongoClient(MONGO_HOST, MONGO_PORT) | ||
self.connection.drop_database(MONGO_DBNAME) | ||
|
||
def testGet(self): | ||
return_json, return_code = self.get(url) | ||
self.assert200(return_code) | ||
|
||
def testPost(self): | ||
return_json, return_code = self.post(url, {"cjv": 0.1231231}) | ||
self.assertFalse(self.domain) | ||
self.assertFalse(return_json) | ||
# self.assert200(return_code) | ||
|
||
# class settingsTestCase(TestMinimal): | ||
# def dropDB(self): | ||
# self.connection = MongoClient(MONGO_HOST, MONGO_PORT) | ||
# self.connection.drop_database(MONGO_DBNAME) | ||
# self.connection.close() | ||
|
||
# def setupDB(self): | ||
# self.connection = MongoClient(MONGO_HOST, MONGO_PORT) | ||
# self.connection.drop_database(MONGO_DBNAME) | ||
# def testPost(): | ||
# return_json, return_code = self.post(url,{"cjg":0.123123}) | ||
# print(return_json) | ||
# print(return_code) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters