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

Fix config test for tomlkit 0.7.2 #132

Merged
merged 3 commits into from
May 25, 2021
Merged

Fix config test for tomlkit 0.7.2 #132

merged 3 commits into from
May 25, 2021

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented May 25, 2021

What:

Fix a nasty issue with testing getting a config value with up to date tomlkit 0.7.2

Why:

The config_dict is some tomlkit extended dict class. With some tomlkit
0.7.1 or 0.7.2 a single test broke. At some place some of this dict
classes might return a proxy to a class and in the next iteration this
proxy doesn't work anymore because something is freed internally.
Therefore always copy the object to not free the data.

How:

Checklist:

The config_dict is some tomlkit extended dict class. With some tomlkit
0.7.1 or 0.7.2 a single test broke. At some place some of this dict
classes might return a proxy to a class and in the next iteration this
proxy doesn't work anymore because something is freed internally.
Therefore always copy the object to not free the data.
@bjoernricks bjoernricks requested a review from a team May 25, 2021 09:34
@codecov
Copy link

codecov bot commented May 25, 2021

Codecov Report

Merging #132 (e429534) into master (07ca632) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #132   +/-   ##
=======================================
  Coverage   49.32%   49.32%           
=======================================
  Files          13       13           
  Lines         596      596           
=======================================
  Hits          294      294           
  Misses        302      302           
Impacted Files Coverage Δ
autohooks/config.py 93.33% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 07ca632...e429534. Read the comment docs.

@bjoernricks bjoernricks merged commit 123adfe into greenbone:master May 25, 2021
@bjoernricks bjoernricks deleted the fix-config-test-for-tomlkit-0.7.2 branch May 25, 2021 09:39
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.

2 participants