File tree Expand file tree Collapse file tree 3 files changed +46
-2
lines changed Expand file tree Collapse file tree 3 files changed +46
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ py_library(
21
21
":get-attribute" ,
22
22
":is-displayed" ,
23
23
],
24
+ deps = [
25
+ "//third_party/py:urllib3" ,
26
+ ],
24
27
imports = ["." ],
25
28
visibility = ["//visibility:public" ],
26
29
)
@@ -30,10 +33,20 @@ py_test(
30
33
size = "small" ,
31
34
srcs = glob ([
32
35
"test/unit/**/*.py" ,
33
- ]) + [ "test/run_pytest.py" ],
34
- main = "test/run_pytest.py" ,
36
+ ]) + [ "test/runner/ run_pytest.py" ],
37
+ main = "test/runner/ run_pytest.py" ,
35
38
deps = [
36
39
":main" ,
40
+ "//third_party/py:pytest" ,
37
41
],
38
42
legacy_create_init = False ,
39
43
)
44
+
45
+ py_binary (
46
+ name = "untar" ,
47
+ visibility = ["//visibility:public" ],
48
+ srcs = [
49
+ "untar.py" ,
50
+ ],
51
+ legacy_create_init = False ,
52
+ )
Original file line number Diff line number Diff line change 3
3
with open ("pytest.ini" , "w" ) as ini_file :
4
4
ini_file .write ("[pytest]\n " )
5
5
ini_file .write ("addopts = -r=a\n " )
6
+ ini_file .write ("rootdir = py" )
6
7
ini_file .write ("python_files = test_*.py *_tests.py\n " )
7
8
8
9
raise SystemExit (pytest .main ())
Original file line number Diff line number Diff line change
1
+ load ("//py:defs.bzl" , "py_import" )
1
2
3
+ py_import (
4
+ name = "py" ,
5
+ wheel = "py-1.4.32-py2.py3-none-any.whl" ,
6
+ )
7
+
8
+ py_import (
9
+ name = "pytest" ,
10
+ wheel = "pytest-3.0.3-py2.py3-none-any.whl" ,
11
+ deps = [
12
+ ":py" ,
13
+ ":pytest-mock" ,
14
+ ],
15
+ visibility = [
16
+ "//visibility:public" ,
17
+ ]
18
+ )
19
+
20
+ py_import (
21
+ name = "pytest-mock" ,
22
+ wheel = "pytest_mock-1.5.0-py2.py3-none-any.whl" ,
23
+ )
24
+
25
+ py_import (
26
+ name = "urllib3" ,
27
+ wheel = "urllib3-1.23-py2.py3-none-any.whl" ,
28
+ visibility = [
29
+ "//visibility:public" ,
30
+ ]
31
+ )
You can’t perform that action at this time.
0 commit comments