88
99def test_full_path (test_info_string_no_build ):
1010 src = Source (
11- "name" ,
12- "python" ,
13- os .path .join ("this" , "is" , "a" , "path" ),
14- test_info_string_no_build ,
11+ filename = "name" ,
12+ language = "python" ,
13+ path = os .path .join ("this" , "is" , "a" , "path" ),
14+ test_info = test_info_string_no_build ,
15+ project_type = "someproject" ,
1516 )
1617 expected = os .path .join ("this" , "is" , "a" , "path" , "name" )
1718 actual = src .full_path
@@ -20,10 +21,11 @@ def test_full_path(test_info_string_no_build):
2021
2122def test_repr (test_info_string_no_build ):
2223 src = Source (
23- "name" ,
24- "python" ,
25- os .path .join ("this" , "is" , "a" , "path" ),
26- test_info_string_no_build ,
24+ filename = "name" ,
25+ language = "python" ,
26+ path = os .path .join ("this" , "is" , "a" , "path" ),
27+ test_info = test_info_string_no_build ,
28+ project_type = "someproject" ,
2729 )
2830 actual = repr (src )
2931 expected_path = os .path .join ("this" , "is" , "a" , "path" )
@@ -37,21 +39,23 @@ def test_repr(test_info_string_no_build):
3739)
3840def test_name (name , expected , test_info_string_no_build ):
3941 src = Source (
40- name ,
41- "python" ,
42- os .path .join ("this" , "is" , "a" , "path" ),
43- test_info_string_no_build ,
42+ filename = name ,
43+ language = "python" ,
44+ path = os .path .join ("this" , "is" , "a" , "path" ),
45+ test_info = test_info_string_no_build ,
46+ project_type = "someproject" ,
4447 )
4548 actual = src .extension
4649 assert actual == expected
4750
4851
4952def test_test_info_matches_test_info_string (test_info_string_no_build ):
5053 src = Source (
51- "name" ,
52- "python" ,
53- os .path .join ("this" , "is" , "a" , "path" ),
54- test_info_string_no_build ,
54+ filename = "name" ,
55+ language = "python" ,
56+ path = os .path .join ("this" , "is" , "a" , "path" ),
57+ test_info = test_info_string_no_build ,
58+ project_type = "someproject" ,
5559 )
5660 expected = TestInfo .from_string (test_info_string_no_build , src )
5761 actual = src .test_info
@@ -64,10 +68,11 @@ def test_build_does_nothing_when_build_is_empty(test_info_string_no_build, monke
6468 lambda * args , ** kwargs : pytest .fail ("get_container was called" ),
6569 )
6670 src = Source (
67- "name" ,
68- "python" ,
69- os .path .join ("this" , "is" , "a" , "path" ),
70- test_info_string_no_build ,
71+ filename = "name" ,
72+ language = "python" ,
73+ path = os .path .join ("this" , "is" , "a" , "path" ),
74+ test_info = test_info_string_no_build ,
75+ project_type = "someproject" ,
7176 )
7277 src .build ()
7378
0 commit comments