Skip to content

Commit

Permalink
Rename code attribute is_hidden to hidden.
Browse files Browse the repository at this point in the history
  • Loading branch information
astamminger committed Dec 13, 2018
1 parent 81ff185 commit 980b34d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aiida/backends/tests/cmdline/commands/test_code.py
Expand Up @@ -146,13 +146,13 @@ def test_hide_one(self):
result = self.cli_runner.invoke(hide, [str(self.code.pk)])
self.assertIsNone(result.exception, result.output)

self.assertTrue(self.code.is_hidden)
self.assertTrue(self.code.hidden)

def test_reveal_one(self):
result = self.cli_runner.invoke(reveal, [str(self.code.pk)])
self.assertIsNone(result.exception, result.output)

self.assertFalse(self.code.is_hidden)
self.assertFalse(self.code.hidden)

def test_relabel_code(self):
result = self.cli_runner.invoke(relabel, [str(self.code.pk), 'new_code'])
Expand Down
2 changes: 1 addition & 1 deletion aiida/orm/data/code.py
Expand Up @@ -60,7 +60,7 @@ def reveal(self):
self.set_extra(self.HIDDEN_KEY, False)

@property
def is_hidden(self):
def hidden(self):
"""
Determines whether the Code is hidden or not
"""
Expand Down

0 comments on commit 980b34d

Please sign in to comment.