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
f8794c77
Commit
f8794c77
authored
Mar 22, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move import to top level.
parent
f32e9120
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
neo/tests/__init__.py
neo/tests/__init__.py
+4
-1
No files found.
neo/tests/__init__.py
View file @
f8794c77
...
@@ -31,6 +31,10 @@ from neo.lib.protocol import Packets
...
@@ -31,6 +31,10 @@ from neo.lib.protocol import Packets
from
neo.lib.util
import
getAddressType
from
neo.lib.util
import
getAddressType
from
time
import
time
from
time
import
time
from
struct
import
pack
,
unpack
from
struct
import
pack
,
unpack
try
:
from
ZODB.utils
import
newTid
except
ImportError
:
pass
DB_PREFIX
=
os
.
getenv
(
'NEO_DB_PREFIX'
,
'test_neo'
)
DB_PREFIX
=
os
.
getenv
(
'NEO_DB_PREFIX'
,
'test_neo'
)
DB_ADMIN
=
os
.
getenv
(
'NEO_DB_ADMIN'
,
'root'
)
DB_ADMIN
=
os
.
getenv
(
'NEO_DB_ADMIN'
,
'root'
)
...
@@ -218,7 +222,6 @@ class NeoUnitTestBase(NeoTestBase):
...
@@ -218,7 +222,6 @@ class NeoUnitTestBase(NeoTestBase):
return
self
.
_makeUUID
(
'A'
)
return
self
.
_makeUUID
(
'A'
)
def
getNextTID
(
self
,
ltid
=
None
):
def
getNextTID
(
self
,
ltid
=
None
):
from
ZODB.utils
import
newTid
return
newTid
(
ltid
)
return
newTid
(
ltid
)
def
getPTID
(
self
,
i
=
None
):
def
getPTID
(
self
,
i
=
None
):
...
...
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