Skip to content
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

Debug Tree JSON Reader #11

Merged
merged 3 commits into from
Apr 19, 2024
Merged

Debug Tree JSON Reader #11

merged 3 commits into from
Apr 19, 2024

Conversation

DK96-OS
Copy link
Owner

@DK96-OS DK96-OS commented Apr 19, 2024

Fix the Tree Reader JSON processing method.

The expected JSON string provided by tests was incorrect, and did not match the actual output of the Tree Command.

The JSON string is wrapped in square brackets (an array) at the top level.

This change fixes both the tests and the JSON object processing method.

It also increases the timeout on the Tree Command from 3 to 5 seconds, just in case someone wants to run Treescriptify on a large directory.

*u tree_runner.py - increase timeout from 3 to 5 seconds
*u tree_reader.py - debug method generate_from_json
*u test_tree_reader.py - debug json test input
@DK96-OS DK96-OS added the bug Something isn't working label Apr 19, 2024
@DK96-OS DK96-OS self-assigned this Apr 19, 2024
@DK96-OS DK96-OS merged commit 9f12ac0 into main Apr 19, 2024
6 checks passed
@DK96-OS DK96-OS deleted the debug branch April 19, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant