Skip to content

fix test_config to prevent leaks#2245

Merged
enyst merged 6 commits into
OpenHands:mainfrom
tobitege:config
Jun 4, 2024
Merged

fix test_config to prevent leaks#2245
enyst merged 6 commits into
OpenHands:mainfrom
tobitege:config

Conversation

@tobitege

@tobitege tobitege commented Jun 4, 2024

Copy link
Copy Markdown
Collaborator

Fix specific test in test_config.py: test_invalid_toml_format

If a "config.toml" file is present, e.g. after "make setup", and a Github token and/or LLM API key are included, this test for whatever reasons expects these to be empty (this specific test should probably rewritten in total, imho)

These asserts however leak both values into the output, thus I slightly rewrote those 2 asserts. Also explicitly set 2 more variables to None for the same concerns.

None of those values are by themselves of concern to tests and should not land in any output like this (before patch):
grafik

@enyst
enyst merged commit 0082640 into OpenHands:main Jun 4, 2024
@tobitege
tobitege deleted the config branch June 4, 2024 19:34
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.

3 participants