Is "-s" visible as a fixture?
See original GitHub issueHi all,
I wonder if I can enable/disable my own printing facilities based on whether the “-s” option is passed to pytest command line, as muting the printing still doesn’t get rid of the overheads of printing (in my case very high …). Is “-s” observable through some fixture or hacks? Or is it possble to know the exact command line that invoked the test, so that I can search for “-s” on my own?
def test(print_on):
if print_on: print(xxx)
This is what I found in pytest source code.
group._addoption(
"-s",
action="store_const",
const="no",
dest="capture",
help="shortcut for --capture=no.",
)
Thanks, Shunning
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Lighting fixture communicating in infrared and visible for ...
In this paper, we propose a full optical wireless bidirectional communication system based on infrared (IR) and Visible Light Communication (VLC) for indoor ......
Read more >Fixtures, Faucets and Fixture Fittings - 422.6 Clinical sink.
❖ A clinical sink is the main special fixture used in health care facilities. It is designed to both wash a bedpan and...
Read more >Sea Turtles and Lights | FWC
Fixture must be able to shield the bulb, lamp, or glowing lens from the beach. *A list of the Florida Fish and Wildlife...
Read more >Innovations 205-SN-S-G202-6 3 Light Adjustable Bathroom ...
Innovations 205-SN-S-G202-6 3 Light Adjustable Bathroom Fixture, Brushed Satin Nickel ; Item model number, 205-SN-S-G202-6 ; Is Discontinued By Manufacturer, No.
Read more >LED Beam Visualization in MA3D
By default, LED fixtures visualized in MA 3D will only illuminate the face of the fixture itself, rather than creating a visible beam....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks guys!
ok!