equal
deleted
inserted
replaced
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' |