-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename and update sequence #823
Conversation
…y exists before setting the sequence
I would need the context manager to update the tasks list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good
@@ -74,7 +74,8 @@ def __init__( | |||
|
|||
@staticmethod | |||
def _new_id(sequence_name: str, scenario_id) -> SequenceId: | |||
return SequenceId(Sequence._SEPARATOR.join([Sequence._ID_PREFIX, _validate_id(sequence_name), scenario_id])) | |||
seq_id = sequence_name.replace(" ", "_") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure about that? Only spaces are a problem?
b40341f
assert scenario.sequences["seq_1"].properties["new_key"] == "new_value" | ||
|
||
|
||
def test_add_rename_and_remove_sequences_within_context(data_node): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@FredLL-Avaiga This test exhibits the fix
Resolves #812
add_sequence
method to check if a sequence already exists with the same name.NonExistingSequence
exception message.