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

Test rendering of environments #44

Merged
merged 17 commits into from
Nov 10, 2020
Merged

Test rendering of environments #44

merged 17 commits into from
Nov 10, 2020

Conversation

AdamGleave
Copy link
Member

Adds a test case to verify that render() in environments is implemented correctly. Also add a mock X server to the Docker image to enable these tests to run on CI.

@codecov
Copy link

codecov bot commented Nov 6, 2020

Codecov Report

Merging #44 (6a08807) into master (8f468f3) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #44   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           24        24           
  Lines          683       700   +17     
=========================================
+ Hits           683       700   +17     
Impacted Files Coverage Δ
src/seals/testing/envs.py 100.00% <100.00%> (ø)
tests/test_envs.py 100.00% <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 8f468f3...8acc507. Read the comment docs.

@AdamGleave AdamGleave requested review from shwang and qxcv November 6, 2020 20:47
Copy link
Member

@shwang shwang left a comment

Choose a reason for hiding this comment

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

Good work. Looks like the XServer + CircleCI stuff was annoying to debug!

Minor change requested to docstring. Otherwise, should be good to merge from my perspective.

auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
working_directory: /seals
Copy link
Member

Choose a reason for hiding this comment

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

I'm okay with this, but curious why you introduced a default dict given that it's only used once in this config. Maybe for reduced nesting or standardized config.yml form?

src/seals/testing/envs.py Outdated Show resolved Hide resolved
@AdamGleave AdamGleave merged commit 728d449 into master Nov 10, 2020
@AdamGleave AdamGleave deleted the test-render branch November 10, 2020 11:36
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