-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Running python unit tests with bazel
Workspace was renamed because bazel does not allow to give the same name to the workspace and the top level python package. Python subdirectory was renames from py to python to avoid conflicts with 'py' package (https://pypi.org/project/py/)
- Loading branch information
Showing
330 changed files
with
11,035 additions
and
39 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
workspace(name = "selenium") | ||
workspace(name = "seleniumhq") | ||
|
||
http_archive( | ||
name = "io_bazel_rules_closure", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
genrule( | ||
name = "is-displayed", | ||
srcs = [ | ||
"//javascript/atoms:is-displayed.js", | ||
], | ||
outs = ["selenium/webdriver/remote/isDisplayed.js"], | ||
cmd = "cp \"$(location //javascript/atoms:is-displayed.js)\" \"$@\"", | ||
) | ||
|
||
genrule( | ||
name = "get-attribute", | ||
srcs = [ | ||
"//javascript/webdriver/atoms:get-attribute.js", | ||
], | ||
outs = ["selenium/webdriver/remote/getAttribute.js"], | ||
cmd = "cp \"$(location //javascript/webdriver/atoms:get-attribute.js)\" \"$@\"", | ||
) | ||
|
||
py_library( | ||
name = "main", | ||
srcs = glob(["selenium/**/*.py"]), | ||
data = [ | ||
":get-attribute", | ||
":is-displayed", | ||
], | ||
imports = ["."], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
py_test( | ||
name = "unit", | ||
size = "small", | ||
srcs = glob([ | ||
"test/unit/**/*.py", | ||
]) + [ "test/run_pytest.py" ], | ||
main = "test/run_pytest.py", | ||
deps = [ | ||
":main", | ||
], | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Licensed to the Software Freedom Conservancy (SFC) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The SFC licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
|
||
|
||
__version__ = "3.8.0" |
File renamed without changes.
Oops, something went wrong.