Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
mocking todo
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxMaSk committed Oct 13, 2017
1 parent 2b888b1 commit 8de73af
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions th_wallabag/tests.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# coding: utf-8
from unittest.mock import patch
from importlib import import_module
# from importlib import import_module
import requests

from django.conf import settings
# from django.conf import settings

from django.core.urlresolvers import reverse
# from django.core.urlresolvers import reverse
from django.test import RequestFactory

from django_th.tests.test_main import MainTest
Expand Down Expand Up @@ -106,7 +106,7 @@ def test_save_data(self):
se = ServiceWallabag()
se.save_data(self.trigger_id, **kwargs)
mock_save_data.assert_called_once_with()

"""
def test_auth(self):
self.create_triggerservice()
request = self.factory.get('/wallabag_callback')
Expand Down Expand Up @@ -138,3 +138,4 @@ def test_create_entry(self):
se = ServiceWallabag()
response = se._create_entry(title, data, tags)
self.assertTrue(type(response) is bool)
"""

0 comments on commit 8de73af

Please sign in to comment.