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/test pass overrides #918

Merged

Conversation

MattPainter01
Copy link
Contributor

Fixes #909

I've added a test too, let me know if it's unnecessary.

@@ -762,5 +762,39 @@ def test_trainer_min_steps_and_epochs(tmpdir):
trainer.current_epoch > 0, "Model did not train for at least min_steps"


def test_testpass_overrides(tmpdir):
hparams = tutils.get_hparams()
from pytorch_lightning.utilities.debugging import MisconfigurationException
Copy link
Member

Choose a reason for hiding this comment

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

this can be loaded at the beginning of the file

Copy link
Member

@Borda Borda left a comment

Choose a reason for hiding this comment

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

I thought that we do not require tests...

@williamFalcon williamFalcon merged commit 6b667b1 into Lightning-AI:master Feb 25, 2020
@Borda Borda added this to the 0.6.1 milestone Feb 25, 2020
@Borda
Copy link
Member

Borda commented Feb 25, 2020

This is breaking master, it shall be fixed... @MattPainter01?

@Borda Borda added bug Something isn't working need fix labels Feb 25, 2020
@Borda Borda mentioned this pull request Feb 25, 2020
@williamFalcon williamFalcon mentioned this pull request Feb 25, 2020
tullie pushed a commit to tullie/pytorch-lightning that referenced this pull request Apr 3, 2020
* Fix test requiring both test_step and test_end

* Add test

Co-authored-by: William Falcon <[email protected]>
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.

Test pass shouldn't require both test_step and test_end
3 participants