Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

tests: Use real path when getting commands in TestCommandsCanStart.

Mateusz Mandera74d3e83e245a
diff --git a/zerver/tests/test_management_commands.py b/zerver/tests/test_management_commands.py
index ddf0916fe7b..6d6bc554a13 100644
--- a/zerver/tests/test_management_commands.py
+++ b/zerver/tests/test_management_commands.py
@@ -183,7 +183,7 @@ class TestCommandsCanStart(ZulipTestCase):
self.commands = [
command
for app_config in apps.get_app_configs()
- if os.path.dirname(app_config.path) == settings.DEPLOY_ROOT
+ if os.path.dirname(os.path.realpath(app_config.path)) == settings.DEPLOY_ROOT
for command in find_commands(os.path.join(app_config.path, "management"))
]
assert self.commands