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
Traceback (most recent call last): | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__ | |
return self.wsgi_app(environ, start_response) | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/werkzeug/contrib/fixers.py", line 152, in __call__ | |
return self.app(environ, start_response) | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app | |
response = self.make_response(self.handle_exception(e)) | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception | |
reraise(exc_type, exc_value, tb) | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app |
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
Traceback (most recent call last): | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/flask/app.py", line 1836, in __call__ | |
return self.wsgi_app(environ, start_response) | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/werkzeug/contrib/fixers.py", line 152, in __call__ | |
return self.app(environ, start_response) | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/flask/app.py", line 1820, in wsgi_app | |
response = self.make_response(self.handle_exception(e)) | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/flask/app.py", line 1403, in handle_exception | |
reraise(exc_type, exc_value, tb) | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/flask/app.py", line 1817, in wsgi_app |
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
draft_sent(self) | |
File "/Users/chengyu/Documents/cheng-unitix/backend/notifications/notifications.py", line 13, in new_func | |
notify_function(*args, **kwargs) | |
File "/Users/chengyu/Documents/cheng-unitix/backend/notifications/drafting/draft_sent.py", line 24, in draft_sent | |
suffix_token=short_url_obj.suffix_token) | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/flask/helpers.py", line 312, in url_for | |
return appctx.app.handle_url_build_error(error, endpoint, values) | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/flask/app.py", line 1641, in handle_url_build_error | |
reraise(exc_type, exc_value, tb) | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/flask/helpers.py", line 305, in url_for |
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
@notification_func | |
def draft_sent(draft): | |
uri = backend.views.app.config['FRONTEND_URI'] | |
link = "{0}jobs/{1}/drafting/client/" | |
link = link.format(uri, draft.job.id) | |
link_with_client_token = link + "?client_token={}".\ | |
format(draft.job.client.client_token) | |
html = render_template('drafting/draft_sent.html', draft.job.domain.theme, | |
draft=draft, link=link_with_client_token) | |
short_url_obj = ShortUrls(link, draft.job.client) |
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
import flask | |
from backend.error import InvalidUsage | |
from backend.models.db import db | |
from backend.models.short_urls import ShortUrls | |
from backend.views.resource import route | |
from common.roles import PUBLIC, CLIENT | |
@route('/sl/<string:prefix_token>-<string:suffix_token>/') | |
def short_url_render(prefix_token, suffix_token): |
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
ERROR: tests.test_frontend.TestFrontend.test_login (subunit.RemotedTestCase) | |
tests.test_frontend.TestFrontend.test_login | |
---------------------------------------------------------------------- | |
_StringException: Traceback (most recent call last): | |
File "/Users/chengyu/Documents/cheng-unitix/tests/test_frontend.py", line 23, in test_login | |
flash = browser.find_element_by_css_selector(".alert-message") | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 434, in find_element_by_css_selector | |
return self.find_element(by=By.CSS_SELECTOR, value=css_selector) | |
File "/Users/chengyu/Documents/cheng-unitix/venv/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 744, in find_element | |
{'using': by, 'value': value})['value'] |
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
sdk.python.jobs (sdk/python/jobs.py): | |
L19:- None: pylint - unused-import | |
Unused JOB_PRODUCTION imported from common.notification_sources | |
tests/tests_with_notifications.py: | |
L1348:29 None: pep8 - E128 | |
continuation line under-indented for visual indent | |
tests/tests_with_notifications.py: | |
L365:27 None: pep8 - E128 |
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
ERROR: tests.test_frontend.TestFrontend.test_auto_generate_invoice_works (subunit.RemotedTestCase) | |
tests.test_frontend.TestFrontend.test_auto_generate_invoice_works | |
---------------------------------------------------------------------- | |
_StringException: Traceback (most recent call last): | |
File "/Users/chengyu/Documents/cheng-unitix/tests/harness.py", line 51, in decorated | |
delta, result = run(self, *args, **kwargs) | |
File "/Users/chengyu/Documents/cheng-unitix/tests/harness.py", line 44, in run | |
result = fn(self, *args, **kwargs) | |
File "/Users/chengyu/Documents/cheng-unitix/tests/test_frontend.py", line 94, in test_auto_generate_invoice_works | |
browser = self.test_login() |
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
====================================================================== | |
ERROR: tests.test_frontend.TestFrontend.test_create_small_company (subunit.RemotedTestCase) | |
tests.test_frontend.TestFrontend.test_create_small_company | |
---------------------------------------------------------------------- | |
_StringException: Traceback (most recent call last): | |
File "/Users/chengyu/Documents/cheng-unitix/tests/harness.py", line 51, in decorated | |
delta, result = run(self, *args, **kwargs) | |
File "/Users/chengyu/Documents/cheng-unitix/tests/harness.py", line 44, in run | |
result = fn(self, *args, **kwargs) |
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
dasdasdas |
OlderNewer