# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import mozunit import pytest from six.moves import reload_module as reload from tryselect import push from tryselect.selectors import again
def test_try_again(monkeypatch):
push.push_to_try( "fuzzy", "Fuzzy message",
try_task_config=push.generate_try_task_config( "fuzzy",
["foo", "bar"],
{"try_task_config": {"use-artifact-builds": True}},
), # Push to VCS instead of Lando so the push fails but history is generated.
push_to_vcs=True,
)
assert os.path.isfile(push.history_path) with open(push.history_path, "r") as fh: assert len(fh.readlines()) == 1
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.