Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

feature/#734 apply is-consistent to sequence and scenario #745

Conversation

toan-quach
Copy link
Member

Comment on lines 178 to 180
if not sequence._is_consistent():
# TODO: add test check raise this exception
raise InvalidSequence(sequence_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the _create method is only used when reading the sequence, we should also use sequence._is_consistent method when adding or changing a scenario sequence.

src/taipy/core/sequence/sequence.py Outdated Show resolved Hide resolved
src/taipy/core/scenario/scenario.py Outdated Show resolved Hide resolved
tests/core/sequence/test_sequence.py Show resolved Hide resolved
@toan-quach toan-quach marked this pull request as ready for review September 5, 2023 08:10
@github-actions
Copy link

github-actions bot commented Sep 5, 2023

☂️ Python Cov

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
7515 7206 96% 85% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/taipy/core/config/scenario_config.py 97% 🟢
src/taipy/core/exceptions/exceptions.py 91% 🟢
src/taipy/core/scenario/_scenario_manager.py 97% 🟢
src/taipy/core/scenario/scenario.py 96% 🟢
src/taipy/core/sequence/_sequence_manager.py 95% 🟢
src/taipy/core/sequence/sequence.py 97% 🟢
TOTAL 95% 🟢

updated for commit: 54f0e36 by action🐍

@toan-quach toan-quach merged commit 659e74d into develop Sep 5, 2023
41 checks passed
@toan-quach toan-quach deleted the feature/#734-apply-is-consistent-check-in-Sequence-and-Scenario branch September 5, 2023 23:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants