Skip to content

Commit

Permalink
Fix trial repr output using str
Browse files Browse the repository at this point in the history
  • Loading branch information
corneauf committed Aug 23, 2019
1 parent 1d7436d commit 29e1d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unittests/core/test_trial.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def test_value_equal(self, exp_config):
def test_str_trial(self, exp_config):
"""Test representation of `Trial`."""
t = Trial(**exp_config[1][1])
assert str(t) == "Trial(experiment='supernaedo2-dendi', status='completed',\n"\
" params=/decoding_layer:lstm_with_attention,/encoding_layer:gru)"
assert str(t) == "Trial(experiment='supernaedo2-dendi', status='completed', "\
"params=/decoding_layer:lstm_with_attention,/encoding_layer:gru)"

def test_str_value(self, exp_config):
"""Test representation of `Trial.Value`."""
Expand Down

0 comments on commit 29e1d91

Please sign in to comment.