remove sent mail from sentbox when block is blacklisted
This commit is contained in:
parent
c636e87b2c
commit
a958b99fef
6 changed files with 50 additions and 14 deletions
19
tests/test_onionrvalues.py
Normal file
19
tests/test_onionrvalues.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env python3
|
||||
import sys, os
|
||||
sys.path.append(".")
|
||||
sys.path.append("src/")
|
||||
import unittest, uuid
|
||||
import json
|
||||
TEST_DIR = 'testdata/%s-%s' % (uuid.uuid4(), os.path.basename(__file__)) + '/'
|
||||
print("Test directory:", TEST_DIR)
|
||||
os.environ["ONIONR_HOME"] = TEST_DIR
|
||||
|
||||
from utils import identifyhome, createdirs
|
||||
from etc import onionrvalues
|
||||
|
||||
class TestOnionrValues(unittest.TestCase):
|
||||
def test_default_expire(self):
|
||||
self.assertEqual(onionrvalues.DEFAULT_EXPIRE, 2592000)
|
||||
|
||||
|
||||
unittest.main()
|
|
@ -14,9 +14,6 @@ createdirs.create_dirs()
|
|||
setup_config()
|
||||
|
||||
class TestTemplate(unittest.TestCase):
|
||||
'''
|
||||
Tests both the onionrusers class and the contactmanager (which inherits it)
|
||||
'''
|
||||
def test_true(self):
|
||||
self.assertTrue(True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue