Changes that let me run the entire the entire linux test suite locally
This commit is contained in:
@@ -12,6 +12,7 @@ def test_unknown_platform_non_ci(monkeypatch, capsys):
|
|||||||
monkeypatch.delenv('BITRISE_BUILD_NUMBER', raising=False)
|
monkeypatch.delenv('BITRISE_BUILD_NUMBER', raising=False)
|
||||||
monkeypatch.delenv('AZURE_HTTP_USER_AGENT', raising=False)
|
monkeypatch.delenv('AZURE_HTTP_USER_AGENT', raising=False)
|
||||||
monkeypatch.delenv('GITHUB_WORKFLOW', raising=False)
|
monkeypatch.delenv('GITHUB_WORKFLOW', raising=False)
|
||||||
|
monkeypatch.delenv('CIBW_PLATFORM', raising=False)
|
||||||
|
|
||||||
with pytest.raises(SystemExit) as exit:
|
with pytest.raises(SystemExit) as exit:
|
||||||
main()
|
main()
|
||||||
@@ -25,6 +26,7 @@ def test_unknown_platform_non_ci(monkeypatch, capsys):
|
|||||||
def test_unknown_platform_on_ci(monkeypatch, capsys):
|
def test_unknown_platform_on_ci(monkeypatch, capsys):
|
||||||
monkeypatch.setenv('CI', 'true')
|
monkeypatch.setenv('CI', 'true')
|
||||||
monkeypatch.setattr(sys, 'platform', 'nonexistent')
|
monkeypatch.setattr(sys, 'platform', 'nonexistent')
|
||||||
|
monkeypatch.delenv('CIBW_PLATFORM', raising=False)
|
||||||
|
|
||||||
with pytest.raises(SystemExit) as exit:
|
with pytest.raises(SystemExit) as exit:
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user