mirror of
https://github.com/developersIndia/deviras.git
synced 2024-12-22 16:19:50 +05:30
Update note for future contributors
Updated note for contributors/reviewers.
This commit is contained in:
parent
981bd089b5
commit
04445c24c2
@ -13,8 +13,7 @@ environ_patcher.start()
|
|||||||
|
|
||||||
from main import get_titles
|
from main import get_titles
|
||||||
|
|
||||||
# TODO: write tests for update_titles method after figuring out
|
# NOTE: not sure about how exactly update_titles can be tested
|
||||||
# which objects to mock and with what
|
|
||||||
class TestTitlesUpdater(unittest.TestCase):
|
class TestTitlesUpdater(unittest.TestCase):
|
||||||
@patch('main.json.load', return_value={'titles': ['foo', 'bar', 'baz']})
|
@patch('main.json.load', return_value={'titles': ['foo', 'bar', 'baz']})
|
||||||
def test_get_titles_returns_a_list(self, _):
|
def test_get_titles_returns_a_list(self, _):
|
||||||
|
Loading…
Reference in New Issue
Block a user