devtools/__init__.py
branchstable
changeset 5245 385c2351153e
parent 5212 a545eb9add6f
child 5249 842a40cade9a
child 5267 7bac6791bbc2
equal deleted inserted replaced
5240:2af0427e8ead 5245:385c2351153e
   156         sources file using self.sourcefile.
   156         sources file using self.sourcefile.
   157         """
   157         """
   158         sources = super(TestServerConfiguration, self).sources()
   158         sources = super(TestServerConfiguration, self).sources()
   159         if not sources:
   159         if not sources:
   160             sources = DEFAULT_SOURCES
   160             sources = DEFAULT_SOURCES
   161         if sources['system']['db-driver'] == 'sqlite':
       
   162             # we need an abspath in case tests are changing the cwd
       
   163             sources['system']['db-name'] = abspath(sources['system']['db-name'])
       
   164         return sources
   161         return sources
   165 
   162 
   166 
   163 
   167 class BaseApptestConfiguration(TestServerConfiguration, TwistedConfiguration):
   164 class BaseApptestConfiguration(TestServerConfiguration, TwistedConfiguration):
   168     repo_method = 'inmemory'
   165     repo_method = 'inmemory'