Skip to content

ability to write to dot files#31

Merged
seddonym merged 7 commits intoseddonym:mainfrom
fabien-marty:ability-to-write-to-dot-files
Jan 16, 2026
Merged

ability to write to dot files#31
seddonym merged 7 commits intoseddonym:mainfrom
fabien-marty:ability-to-write-to-dot-files

Conversation

@fabien-marty
Copy link
Contributor

@fabien-marty fabien-marty commented Jan 2, 2026

Closes: #30

  • Add tests for the change.
  • Add any appropriate documentation.
  • Run just check.
  • Add a summary of changes to CHANGELOG.rst.
  • Add your name to AUTHORS.rst.

@seddonym seddonym self-requested a review January 8, 2026 17:02
Copy link
Owner

@seddonym seddonym left a comment

Choose a reason for hiding this comment

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

This is looking great, thanks!

As you mention in the issue, it would be great to add (i) documentation and (ii) tests.

Re. tests, we should have coverage of the different parameters passed in in tests/unit/application/test_use_cases.py. I also think it's worth a test that output redirection is working, possibly that could be added to the test recipe in the justfile.

@fabien-marty
Copy link
Contributor Author

ready for final review

@fabien-marty fabien-marty requested a review from seddonym January 13, 2026 20:38
Copy link
Owner

@seddonym seddonym left a comment

Choose a reason for hiding this comment

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

Nice work.

Just a few quick tweaks before this is ready to go. If you're feeling like it, I also think it would be a good moment to improve the formatting of the dot output.

viewer.view(dot)
output = mock_stdout.getvalue()

# Verify it's DOT content
Copy link
Owner

Choose a reason for hiding this comment

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

I think it would be useful to assert against the entire DOT content here, rather than just doing a spot-check.

Copy link
Owner

Choose a reason for hiding this comment

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

Also, I notice the dot content is not formatted nicely (my fault 😄 ). Non-blocking, but if it's easily done maybe it would be worthwhile correcting that, now people may actually view the dot content.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I propose to fix that in another PR (I plan to work on a mermaid output too)

Copy link
Owner

Choose a reason for hiding this comment

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

Ok!

@fabien-marty fabien-marty requested a review from seddonym January 15, 2026 07:49
@fabien-marty
Copy link
Contributor Author

maybe you should approve the github action workflow execution to check if there is any CI issue?

@seddonym seddonym self-requested a review January 15, 2026 12:23
Copy link
Owner

@seddonym seddonym left a comment

Choose a reason for hiding this comment

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

Generally looking good, but just test-output-redirection needs to be compatible with Mac OS and Linux. (Even better, Windows, but don't worry if not.)

@fabien-marty fabien-marty requested a review from seddonym January 16, 2026 09:57
@seddonym seddonym merged commit 87ccc7a into seddonym:main Jan 16, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to write to dot files

2 participants