Merge branch 'feature/testrefactoring' into develop
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -9,6 +9,10 @@
|
|||||||
/build/
|
/build/
|
||||||
/docs/
|
/docs/
|
||||||
|
|
||||||
|
# coverage folder
|
||||||
|
/htmlcov/
|
||||||
|
.coverage
|
||||||
|
|
||||||
# CSV files
|
# CSV files
|
||||||
/media/
|
/media/
|
||||||
|
|
||||||
|
|||||||
21
rowers/tests/__init__.py
Normal file
21
rowers/tests/__init__.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
pkg_mox = None
|
||||||
|
|
||||||
|
|
||||||
|
def setUpPackage():
|
||||||
|
global pkg_mox
|
||||||
|
import urllib
|
||||||
|
import urllib2
|
||||||
|
import mox
|
||||||
|
import requests
|
||||||
|
pkg_mox = mox.Mox()
|
||||||
|
pkg_mox.StubOutWithMock(requests.api.sessions.Session, 'send')
|
||||||
|
pkg_mox.StubOutWithMock(urllib.URLopener, 'open')
|
||||||
|
pkg_mox.StubOutWithMock(urllib2.OpenerDirector, 'open')
|
||||||
|
pkg_mox.ReplayAll()
|
||||||
|
|
||||||
|
|
||||||
|
def tearDownPackage():
|
||||||
|
pkg_mox.VerifyAll()
|
||||||
|
pkg_mox.UnsetStubs()
|
||||||
|
|
||||||
|
from tests import *
|
||||||
|
Can't render this file because it is too large.
|
|
Can't render this file because it is too large.
|
|
Can't render this file because it is too large.
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user