Exemplo n.º 1
0
def test_edit_collection_delete_collection() -> None:
    time.sleep(120)

    from sxcu import SXCU

    con = SXCU.edit_collection(
        collection_id=collection_details["collection_id"],
        collection_token=collection_details["collection_token"],
        delete_collection=True,
    )

    assert con["token"] is None
Exemplo n.º 2
0
def test_edit_collection_no_delete() -> None:
    time.sleep(120)
    from sxcu import SXCU

    con = SXCU.edit_collection(
        collection_id=collection_details["collection_id"],
        collection_token=collection_details["collection_token"],
        title="New Title",
        desc="Test Description",
        unlisted=True,
    )

    assert con["token"] is None