@@ -21,15 +21,18 @@ def setup_class(cls):
2121 def teardown_class (cls ):
2222 cls .session .close ()
2323
24+ @pytest .mark .integration
2425 def test_driver (self ):
2526 conn = self .conn
2627 assert conn .name == "server1"
2728
29+ @pytest .mark .integration
2830 def test_workspaces (self ):
2931 conn = self .conn
3032 workspaces = conn .list_workspaces ()
3133 assert type (workspaces ) is list
3234
35+ @pytest .mark .integration
3336 def test_profiles (self ):
3437 conn = self .conn
3538 profiles = conn .list_profiles ()
@@ -39,6 +42,7 @@ def test_profiles(self):
3942 assert type (profiles ["available" ]) is list
4043 assert profiles ["current" ] == "default"
4144
45+ @pytest .mark .integration
4246 def test_methods (self ):
4347 conn = self .conn
4448 methods = conn .list_methods (type = "assign" )
@@ -62,6 +66,7 @@ def test_methods(self):
6266 names = [x ["name" ] for x in methods ]
6367 assert "meanDS" in names
6468
69+ @pytest .mark .integration
6570 def test_packages (self ):
6671 conn = self .conn
6772 pkgs = conn .list_packages ()
@@ -72,20 +77,23 @@ def test_packages(self):
7277 assert "resourcer" in names
7378 assert "dsBase" in names
7479
80+ @pytest .mark .integration
7581 def test_tables (self ):
7682 conn = self .conn
7783 tables = conn .list_tables ()
7884 assert type (tables ) is list
7985 assert "CNSIM.CNSIM1" in tables
8086 assert conn .has_table ("CNSIM.CNSIM1" )
8187
88+ @pytest .mark .integration
8289 def test_resources (self ):
8390 conn = self .conn
8491 resources = conn .list_resources ()
8592 assert type (resources ) is list
8693 assert "RSRC.CNSIM1" in resources
8794 assert conn .has_resource ("RSRC.CNSIM1" )
8895
96+ @pytest .mark .integration
8997 def test_assign_expr (self ):
9098 conn = self .conn
9199 res = conn .assign_expr ("x" , "c(1, 2, 3)" , asynchronous = False )
@@ -110,6 +118,7 @@ def test_assign_expr(self):
110118 assert type (symbols ) is list
111119 assert len (symbols ) == 0
112120
121+ @pytest .mark .integration
113122 def test_assign_table (self ):
114123 conn = self .conn
115124 try :
@@ -138,6 +147,7 @@ def test_assign_table(self):
138147 print (e .get_error ())
139148 raise ValueError ("Assign table test failed" ) from e
140149
150+ @pytest .mark .integration
141151 def test_assign_resource (self ):
142152 conn = self .conn
143153 try :
@@ -167,6 +177,7 @@ def test_assign_resource(self):
167177 print (e .get_error ())
168178 raise ValueError ("Assign resource test failed" ) from e
169179
180+ @pytest .mark .integration
170181 def test_aggregate (self ):
171182 conn = self .conn
172183 try :
@@ -196,6 +207,7 @@ def test_aggregate(self):
196207 print (e .get_error ())
197208 raise ValueError ("Aggregate test failed" ) from e
198209
210+ @pytest .mark .integration
199211 def test_aggregate_function_not_allowed (self ):
200212 conn = self .conn
201213 with pytest .raises (DSError ) as exc_info :
0 commit comments