* fixed https://github.com/getredash/redash/issues/2950

* fixed test code

* Effective -> Active. thank you @kravets-levko
This commit is contained in:
GitSumito 2018-10-15 21:57:51 +09:00 committed by Arik Fraimovich
parent e6146dae0f
commit a4b9c2da12
2 changed files with 3 additions and 2 deletions

View File

@ -245,5 +245,5 @@ def list(organization=None):
if i > 0:
print("-" * 20)
print("Id: {}\nName: {}\nEmail: {}\nOrganization: {}".format(
user.id, user.name.encode('utf-8'), user.email, user.org.name))
print("Id: {}\nName: {}\nEmail: {}\nOrganization: {}\nActive: {}".format(
user.id, user.name.encode('utf-8'), user.email, user.org.name, not(user.is_disabled)))

View File

@ -391,6 +391,7 @@ class UserCommandTests(BaseTestCase):
Name: Fred Foobar
Email: foobar@example.com
Organization: Default
Active: True
"""
self.assertMultiLineEqual(result.output,
textwrap.dedent(output).lstrip())