From f26c027f1db489018c724a192309b93a8d8357c0 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 25 Aug 2017 05:13:00 -0300 Subject: [pkg] move server.tac to server src folder This way the file gets copied during package install. -- Related: #8867 --- testing/tests/server/test_tac.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing') 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): -- cgit v1.2.3