Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
40b6ba64
Commit
40b6ba64
authored
Mar 09, 2023
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qa: do never import MySQL-specific code when testing SQLite
parent
cf8f2028
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
neo/tests/threaded/testImporter.py
neo/tests/threaded/testImporter.py
+3
-1
No files found.
neo/tests/threaded/testImporter.py
View file @
40b6ba64
...
@@ -282,12 +282,14 @@ class ImporterTests(NEOThreadedTest):
...
@@ -282,12 +282,14 @@ class ImporterTests(NEOThreadedTest):
tid_list
.
append
(
tid
)
tid_list
.
append
(
tid
)
def
fetchObject
(
orig
,
db
,
*
args
):
def
fetchObject
(
orig
,
db
,
*
args
):
if
len
(
tid_list
)
==
5
:
if
len
(
tid_list
)
==
5
:
if
isinstance
(
db
,
getAdapterKlass
(
'MySQL'
)):
x
=
type
(
db
).
__name__
if
x
==
'MySQLDatabaseManager'
:
from
neo.tests.storage.testStorageMySQL
import
ServerGone
from
neo.tests.storage.testStorageMySQL
import
ServerGone
with
ServerGone
(
db
):
with
ServerGone
(
db
):
orig
(
db
,
*
args
)
orig
(
db
,
*
args
)
self
.
fail
()
self
.
fail
()
else
:
else
:
assert
x
==
'SQLiteDatabaseManager'
tid_list
.
append
(
None
)
tid_list
.
append
(
None
)
p
.
revert
()
p
.
revert
()
return
orig
(
db
,
*
args
)
return
orig
(
db
,
*
args
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment