commit | 1d4e09ad39bd0163d1413769bda1fea7c621fe48 | [log] [tgz] |
---|---|---|
author | Richard Levasseur <rlevasseur@google.com> | Tue May 12 10:58:49 2020 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Tue May 12 10:59:08 2020 -0700 |
tree | 0338ed75606d91f74b86b5013d531037b5b834aa | |
parent | 97ab612537feab6b56f345b0e1025d35712f8926 [diff] |
Make parameterized tests show runtime test name that is copy/paste friendly. This solves two problems: 1. Makes the printed name copy/paste friendly (e.g. "FooTest.test_foo" instead of "test_foo (__main__.FooTest)" 2. Prints the addressable test name (e.g. "test_foo1") instead of the original test name ("test_foo"). This makes it possible to copy/paste the name and run that single test (which is otherwise near impossible, since the suffixed name is never mentioned anywhere). The repr of parameterized values is still appended to aid knowing which case the test is covering. Also more strictly enforces that generated tests are coming from the parameterized decorators. PiperOrigin-RevId: 311160728 Change-Id: Ica8afd0998362cd8a8a1d1abdca02bc8a51c38d6
This repository is a collection of Python library code for building Python applications. The code is collected from Google's own Python code base, and has been extensively tested and used in production.
To install the package, simply run:
pip install absl-py
Or install from source:
python setup.py install
To run Abseil tests, you can clone the git repo and run bazel:
git clone https://github.com/abseil/abseil-py.git cd abseil-py bazel test absl/...
Please refer to smoke_tests/sample_app.py as an example to get started.
See the Abseil Python Developer Guide.
The current repository includes an initial set of libraries for early adoption. More components and interoperability with Abseil C++ Common Libraries will come in future releases.
The Abseil Python library is licensed under the terms of the Apache license. See LICENSE for more information.