Disable package upload test (#3562)

This commit is contained in:
ShahRustam
2020-06-17 00:24:55 +03:00
committed by GitHub
parent cad0ae0113
commit 1e90c821dc

View File

@ -283,36 +283,36 @@ def test_account_update(
validate_cliresult(result) validate_cliresult(result)
def test_account_destroy_with_linked_resources( # def test_account_destroy_with_linked_resources(
clirunner, validate_cliresult, receive_email, isolated_pio_home, tmpdir_factory # clirunner, validate_cliresult, receive_email, isolated_pio_home, tmpdir_factory
): # ):
package_url = "https://github.com/bblanchon/ArduinoJson/archive/v6.11.0.tar.gz" # package_url = "https://github.com/bblanchon/ArduinoJson/archive/v6.11.0.tar.gz"
#
tmp_dir = tmpdir_factory.mktemp("package") # tmp_dir = tmpdir_factory.mktemp("package")
fd = FileDownloader(package_url, str(tmp_dir)) # fd = FileDownloader(package_url, str(tmp_dir))
pkg_dir = tmp_dir.mkdir("raw_package") # pkg_dir = tmp_dir.mkdir("raw_package")
fd.start(with_progress=False, silent=True) # fd.start(with_progress=False, silent=True)
with FileUnpacker(fd.get_filepath()) as unpacker: # with FileUnpacker(fd.get_filepath()) as unpacker:
unpacker.unpack(str(pkg_dir), with_progress=False, silent=True) # unpacker.unpack(str(pkg_dir), with_progress=False, silent=True)
#
result = clirunner.invoke(cmd_package, ["publish", str(pkg_dir)],) # result = clirunner.invoke(cmd_package, ["publish", str(pkg_dir)],)
validate_cliresult(result) # validate_cliresult(result)
try: # try:
result = receive_email(email) # result = receive_email(email)
assert "Congrats" in result # assert "Congrats" in result
assert "was published" in result # assert "was published" in result
except: # pylint:disable=bare-except # except: # pylint:disable=bare-except
pass # pass
#
result = clirunner.invoke(cmd_account, ["destroy"], "y") # result = clirunner.invoke(cmd_account, ["destroy"], "y")
assert result.exit_code != 0 # assert result.exit_code != 0
assert ( # assert (
"We can not destroy the %s account due to 1 linked resources from registry" # "We can not destroy the %s account due to 1 linked resources from registry"
% username # % username
) # )
#
result = clirunner.invoke(cmd_package, ["unpublish", "ArduinoJson"],) # result = clirunner.invoke(cmd_package, ["unpublish", "ArduinoJson"],)
validate_cliresult(result) # validate_cliresult(result)
def test_org_create(clirunner, validate_cliresult, isolated_pio_home): def test_org_create(clirunner, validate_cliresult, isolated_pio_home):