GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 2ef6773b authored by Cecylia Bocovich's avatar Cecylia Bocovich
Browse files

Update tests to load a test config

parent 34e912bb
{
"platforms": ["linux", "osx", "windows"],
"dbname": "gettor.db",
"email_parser_logfile": "email_parser.log",
"email_requests_limit": 30,
"twitter_requests_limit": 1,
"sendmail_interval": 10,
"twitter_interval": 10,
"sendmail_addr": "gettor@torproject.org",
"sendmail_host": "localhost",
"sendmail_port": 587,
"consumer_key": "",
"consumer_secret": "",
"access_key": "",
"access_secret": "",
"test_hid": "80d7054da0d3826563c7babb5453e18f3e42f932e562c5ab0434aec9df7b0625",
"twitter_handle": "get_tor",
"twitter_messages_endpoint": "https://api.twitter.com/1.1/direct_messages/events/list.json",
"twitter_new_message_endpoint": "https://api.twitter.com/1.1/direct_messages/events/new.json"
}
......@@ -13,7 +13,7 @@ class EmailServiceTests(unittest.TestCase):
# Fail any tests which take longer than 15 seconds.
timeout = 15
def setUp(self):
self.settings = conftests.options.parse_settings("en","./gettor.conf.json")
self.settings = conftests.options.parse_settings("en","tests/test.conf.json")
self.sm_client = conftests.Sendmail(self.settings)
self.locales = conftests.strings.get_locales()
self.links = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment