Skip to content

Commit

Permalink
Test branch for PR 313
Browse files Browse the repository at this point in the history
  • Loading branch information
trunk-io[bot] authored Sep 1, 2023
2 parents 8df4f1b + d8bcd58 commit de880bf
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tests/nodes/subobjects/test_software_configuration.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import json
import uuid

import pytest
from integration_test_helper import (
delete_integration_node_helper,
integrate_nodes_helper,
)
from util import strip_uid_from_dict

import cript
from cript.api.exceptions import APIError


def test_json(complex_software_configuration_node, complex_software_configuration_dict):
Expand Down Expand Up @@ -68,9 +66,4 @@ def test_integration_software_configuration(cript_api, simple_project_node, simp
integrate_nodes_helper(cript_api=cript_api, project_node=simple_project_node)

# ========= test delete =========
# cannot delete `Software_Configuration` from a frozen node `Software`
with pytest.raises(APIError) as error:
delete_integration_node_helper(cript_api=cript_api, node_to_delete=simple_software_configuration)

# the current error that the API gives
assert "The browser (or proxy) sent a request that this server could not understand." in str(error)
delete_integration_node_helper(cript_api=cript_api, node_to_delete=simple_software_configuration)

0 comments on commit de880bf

Please sign in to comment.