these tests should cause pytest_configure to be called
This commit is contained in:
		
							parent
							
								
									bf3d9f3737
								
							
						
					
					
						commit
						c4d761fe99
					
				|  | @ -328,7 +328,7 @@ class TestSession: | ||||||
|     def test_collect_protocol_single_function(self, testdir): |     def test_collect_protocol_single_function(self, testdir): | ||||||
|         p = testdir.makepyfile("def test_func(): pass") |         p = testdir.makepyfile("def test_func(): pass") | ||||||
|         id = "::".join([p.basename, "test_func"]) |         id = "::".join([p.basename, "test_func"]) | ||||||
|         config = testdir.parseconfig(id) |         config = testdir.parseconfigure(id) | ||||||
|         topdir = testdir.tmpdir |         topdir = testdir.tmpdir | ||||||
|         rcol = Session(config) |         rcol = Session(config) | ||||||
|         assert topdir == rcol.fspath |         assert topdir == rcol.fspath | ||||||
|  | @ -363,7 +363,7 @@ class TestSession: | ||||||
|                    p.basename + "::TestClass::()", |                    p.basename + "::TestClass::()", | ||||||
|                    normid, |                    normid, | ||||||
|                    ]: |                    ]: | ||||||
|             config = testdir.parseconfig(id) |             config = testdir.parseconfigure(id) | ||||||
|             rcol = Session(config=config) |             rcol = Session(config=config) | ||||||
|             rcol.perform_collect() |             rcol.perform_collect() | ||||||
|             items = rcol.items |             items = rcol.items | ||||||
|  | @ -388,7 +388,7 @@ class TestSession: | ||||||
|         """ % p.basename) |         """ % p.basename) | ||||||
|         id = p.basename |         id = p.basename | ||||||
| 
 | 
 | ||||||
|         config = testdir.parseconfig(id) |         config = testdir.parseconfigure(id) | ||||||
|         rcol = Session(config) |         rcol = Session(config) | ||||||
|         hookrec = testdir.getreportrecorder(config) |         hookrec = testdir.getreportrecorder(config) | ||||||
|         rcol.perform_collect() |         rcol.perform_collect() | ||||||
|  | @ -413,7 +413,7 @@ class TestSession: | ||||||
|         aaa = testdir.mkpydir("aaa") |         aaa = testdir.mkpydir("aaa") | ||||||
|         test_aaa = aaa.join("test_aaa.py") |         test_aaa = aaa.join("test_aaa.py") | ||||||
|         p.move(test_aaa) |         p.move(test_aaa) | ||||||
|         config = testdir.parseconfig() |         config = testdir.parseconfigure() | ||||||
|         rcol = Session(config) |         rcol = Session(config) | ||||||
|         hookrec = testdir.getreportrecorder(config) |         hookrec = testdir.getreportrecorder(config) | ||||||
|         rcol.perform_collect() |         rcol.perform_collect() | ||||||
|  | @ -437,7 +437,7 @@ class TestSession: | ||||||
|         p.move(test_bbb) |         p.move(test_bbb) | ||||||
| 
 | 
 | ||||||
|         id = "." |         id = "." | ||||||
|         config = testdir.parseconfig(id) |         config = testdir.parseconfigure(id) | ||||||
|         rcol = Session(config) |         rcol = Session(config) | ||||||
|         hookrec = testdir.getreportrecorder(config) |         hookrec = testdir.getreportrecorder(config) | ||||||
|         rcol.perform_collect() |         rcol.perform_collect() | ||||||
|  | @ -455,7 +455,7 @@ class TestSession: | ||||||
| 
 | 
 | ||||||
|     def test_serialization_byid(self, testdir): |     def test_serialization_byid(self, testdir): | ||||||
|         p = testdir.makepyfile("def test_func(): pass") |         p = testdir.makepyfile("def test_func(): pass") | ||||||
|         config = testdir.parseconfig() |         config = testdir.parseconfigure() | ||||||
|         rcol = Session(config) |         rcol = Session(config) | ||||||
|         rcol.perform_collect() |         rcol.perform_collect() | ||||||
|         items = rcol.items |         items = rcol.items | ||||||
|  | @ -476,7 +476,7 @@ class TestSession: | ||||||
|                     pass |                     pass | ||||||
|         """) |         """) | ||||||
|         arg = p.basename + ("::TestClass::test_method") |         arg = p.basename + ("::TestClass::test_method") | ||||||
|         config = testdir.parseconfig(arg) |         config = testdir.parseconfigure(arg) | ||||||
|         rcol = Session(config) |         rcol = Session(config) | ||||||
|         rcol.perform_collect() |         rcol.perform_collect() | ||||||
|         items = rcol.items |         items = rcol.items | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue