devtools/__init__.py
branchstable
changeset 5185 92376b009b98
parent 5169 240e21b94a28
child 5196 d14bfd477c44
child 5210 1c635a91e403
equal deleted inserted replaced
5183:8d66003351f8 5185:92376b009b98
   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'])
   161         return sources
   164         return sources
   162 
   165 
   163 
   166 
   164 class BaseApptestConfiguration(TestServerConfiguration, TwistedConfiguration):
   167 class BaseApptestConfiguration(TestServerConfiguration, TwistedConfiguration):
   165     repo_method = 'inmemory'
   168     repo_method = 'inmemory'