question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PT007 doesn't seem right

See original GitHub issue

Description

@pytest.mark.parametrize should check for iterable containers rather than enforce list. I, for instance, prefer using immutable types, like tuples so I never use lists there. Another valid case would be using sets, which may prove to be useful if one wants to ensure there’s no duplicates.

What I Did

@pytest.mark.parametrize(
	'adapter_type',
	(
		'builtin',
		'pyopenssl',
	),
)

/

@pytest.mark.parametrize(
	'is_trusted_cert,tls_client_identity',
	(
		(True, 'localhost'), (True, '127.0.0.1'),
		(True, '*.localhost'), (True, 'not_localhost'),
		(False, 'localhost'),
	),
)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
webknjazcommented, Jan 22, 2020

Sounds good. It’s just that consistency style can be project-specific so it’d be nice to be able to select that style.

1reaction
m-burstcommented, Mar 23, 2020

Hi @sergiowalls, Please post the exact error that you are getting, as well as your flake8 settings related to flake8-pytest-style (preferably in a new issue).

Read more comments on GitHub >

github_iconTop Results From Across the Web

x24″ PT007-905 - Pergo Extreme Tile - NiceFloors
Buy this at a great price! Pergo Extreme Extreme Tile Options Resurfaced Concrete 12"x24" PT007-905.
Read more >
Imperial Pergo Extreme Tile Options PT007-997
Imperial is a virtually indestructible, rigid luxury vinyl flooring by Pergo. Collection: Pergo Extreme Tile Options Dimensions: 12" x 24" x 7.5 mm...
Read more >
Pergo - Extreme Tile Options 18 in. x 36 in. - Silver Dust - Floorzz
Collection: Pergo Extreme Tile Options; 20 mil wear layer; Plank Locking System: Uniclic; Edge: Painted Bevel; 18.52 square feet per box. PT007-976 ...
Read more >
SOLVED:[T ] The graph below plots the cubic p(t)=0.07 t^3+ ...
VIDEO ANSWER: [T ] The graph below plots the cubic p(t)=0.07 t^{3}+2.42 t^{2}-25.63 t+521.23 against the data in the preceding table, normalized so...
Read more >
Section 7 - IBEW1245
Discharges of Machinist, Mechanic and Helper for failure to correct expense accounts; reinstated with partial pay and change of records to read "layoff"....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found