summaryrefslogtreecommitdiff
path: root/testing/tests
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-08-25 05:13:00 -0300
committerdrebs <drebs@riseup.net>2017-09-05 11:08:47 -0300
commitf26c027f1db489018c724a192309b93a8d8357c0 (patch)
treeb79dc2d77fe5babe358731dbdb342a4a94236fcc /testing/tests
parent451604cdbb93d738d29855fcc69f44b4ec996645 (diff)
[pkg] move server.tac to server src folder
This way the file gets copied during package install. -- Related: #8867
Diffstat (limited to 'testing/tests')
-rw-r--r--testing/tests/server/test_tac.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/server/test_tac.py b/testing/tests/server/test_tac.py
index 3fa4e064..e825a9ce 100644
--- a/testing/tests/server/test_tac.py
+++ b/testing/tests/server/test_tac.py
@@ -26,14 +26,14 @@ import socket
import pytest
import treq
+from pkg_resources import resource_filename
from twisted.trial import unittest
from twisted.internet import defer, reactor
from twisted.internet.protocol import ProcessProtocol
from twisted.web.client import Agent
-TAC_FILE_PATH = ('..', '..', '..', '..', 'pkg', 'server.tac')
-TAC_FILE_PATH = os.path.abspath(os.path.join(__file__, *TAC_FILE_PATH))
+TAC_FILE_PATH = resource_filename('leap.soledad.server', 'server.tac')
class TacServerTestCase(unittest.TestCase):