Code Review
/
ric-plt
/
a1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
A1 v2.1.0
[ric-plt/a1.git]
/
tests
/
test_data.py
diff --git
a/tests/test_data.py
b/tests/test_data.py
index
45c2eac
..
bf178ff
100644
(file)
--- a/
tests/test_data.py
+++ b/
tests/test_data.py
@@
-1,6
+1,6
@@
# ==================================================================================
# ==================================================================================
-# Copyright (c) 2019 Nokia
-# Copyright (c) 2018-20
19
AT&T Intellectual Property.
+# Copyright (c) 2019
-2020
Nokia
+# Copyright (c) 2018-20
20
AT&T Intellectual Property.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@
-15,13
+15,18
@@
# limitations under the License.
# ==================================================================================
from a1 import data
# limitations under the License.
# ==================================================================================
from a1 import data
+from .a1test_helpers import MockSDLWrapper
+
+
+def setup_module():
+ """module level setup"""
+ data.SDL = MockSDLWrapper() # patch SDL
def test_sdl_raw():
"""
test raw sdl functions
"""
def test_sdl_raw():
"""
test raw sdl functions
"""
- data.SDL = data.SDLWrapper()
data.SDL.set("as.df1", "data")
data.SDL.set("as.df2", "data2")
assert data.SDL.get("as.df1") == "data"
data.SDL.set("as.df1", "data")
data.SDL.set("as.df2", "data2")
assert data.SDL.get("as.df1") == "data"