Skip to content

Commit

Permalink
Rename test_e2e to try to make travis happy
Browse files Browse the repository at this point in the history
  • Loading branch information
bal2ag committed Jan 17, 2017
1 parent 3e4a1d2 commit 8e9e9e7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/test_e2e.py → tests/test_end_to_end.py
Expand Up @@ -2,17 +2,17 @@

from mock import MagicMock

import hashlib, sys
import hashlib

class MockCache(CachualCache):
class FakeCache(CachualCache):
def __init__(self):
pass
get = MagicMock(return_value=None)
put = MagicMock()
logger = MagicMock()

def get_unit():
return MockCache()
return FakeCache()

def get_hash(value):
m = hashlib.md5()
Expand All @@ -28,7 +28,7 @@ def testing(a, b):

a = 'a'
b = 'b'
expected_key = get_hash('test_e2e.testing(a, b=b)')
expected_key = get_hash('test_end_to_end.testing(a, b=b)')
testing(a, b=b)

unit.get.assert_called_with(expected_key)
Expand All @@ -47,7 +47,7 @@ def testing(cls, a, b):

a = 'a'
b = 'b'
expected_key = get_hash('test_e2e.testing(%s, a, b=b)' % Test)
expected_key = get_hash('test_end_to_end.testing(%s, a, b=b)' % Test)
Test().testing(a, b=b)

unit.get.assert_called_with(expected_key)
Expand All @@ -67,7 +67,7 @@ def testing(self, a, b):
a = 'a'
b = 'b'
t = Test()
expected_key = get_hash('test_e2e.testing(%s, a, b=b)' % t)
expected_key = get_hash('test_end_to_end.testing(%s, a, b=b)' % t)
t.testing(a, b=b)

unit.get.assert_called_with(expected_key)
Expand All @@ -90,7 +90,7 @@ def __init__(self):

a = 'a'
b = 'b'
expected_key = get_hash('test_e2e.testing(%s, a, b=b)' % SubTest)
expected_key = get_hash('test_end_to_end.testing(%s, a, b=b)' % SubTest)
SubTest().testing(a, b=b)

unit.get.assert_called_with(expected_key)
Expand All @@ -115,7 +115,7 @@ def __init__(self):
a = 'a'
b = 'b'
t = SubTest()
expected_key = get_hash('test_e2e.testing(%s, a, b=b)' % t)
expected_key = get_hash('test_end_to_end.testing(%s, a, b=b)' % t)
t.testing(a, b=b)

unit.get.assert_called_with(expected_key)
Expand All @@ -135,7 +135,7 @@ def testing(self, a, b):
a = 'a'
b = 'b'
t = Test()
expected_key = get_hash('test_e2e.testing(%s, a, b=b)' % Test)
expected_key = get_hash('test_end_to_end.testing(%s, a, b=b)' % Test)
t.testing(a, b=b)

unit.get.assert_called_with(expected_key)
Expand All @@ -159,7 +159,7 @@ def __init__(self):
a = 'a'
b = 'b'
t = SubTest()
expected_key = get_hash('test_e2e.testing(%s, a, b=b)' % SubTest)
expected_key = get_hash('test_end_to_end.testing(%s, a, b=b)' % SubTest)
t.testing(a, b=b)

unit.get.assert_called_with(expected_key)
Expand Down

0 comments on commit 8e9e9e7

Please sign in to comment.