Public bug reported:

This page http://docs.openstack.org/developer/horizon/testing.html
contains instructions that tells the user how to start running tests for
the Horizon project.

I've detected two things wrong:
1. There are some commands that are not properly formatted for visual purposes, 
e.g. mono-space font,  enclosed in a box.
2.  Single hyphens are replaced by en dashes,
      $ ./run_tests.sh –with-selenium –selenium-headless should be $ 
./run_tests.sh --with-selenium --selenium-headless


*See image attached to this bug report*

If the user tries to execute the same commands, he/she will see the
following error:

 $./run_tests.sh –with-selenium –selenium-headless
Checking environment.
Environment is up to date.
Traceback (most recent call last):
  File "/opt/stack/horizon/manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 354, in execute_from_command_line
    utility.execute()
  File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 303, in execute
    settings.INSTALLED_APPS
  File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 48, in __getattr__
    self._setup(name)
  File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 44, in _setup
    self._wrapped = Settings(settings_module)
  File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 92, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named –with-selenium

That is because there's no option named –with-selenium but --with-
selenium.

** Affects: horizon
     Importance: Undecided
     Assignee: Eddie Ramirez (ediardo)
         Status: New

** Attachment added: "Screenshot depicting the bug"
   
https://bugs.launchpad.net/bugs/1559276/+attachment/4603633/+files/Horizon%E2%80%99s%20tests%20and%20you%20%E2%80%94%20horizon%209.0.0.0b4.dev143%20documentation.png

** Changed in: horizon
     Assignee: (unassigned) => Eddie Ramirez (ediardo)

** Description changed:

  This page http://docs.openstack.org/developer/horizon/testing.html
  contains instructions that tells the user how to start running tests for
  the Horizon project.
  
- I've detected two things wrong: 
+ I've detected two things wrong:
  1. There are some commands that are not properly formatted for visual 
purposes, e.g. mono-space font,  enclosed in a box.
- 2.  Single hyphens are replaced by en dashes, 
-       $ ./run_tests.sh –with-selenium –selenium-headless should be $ 
./run_tests.sh --with-selenium --selenium-headless
+ 2.  Single hyphens are replaced by en dashes,
+       $ ./run_tests.sh –with-selenium –selenium-headless should be $ 
./run_tests.sh --with-selenium --selenium-headless
+ 
+ 
+ *See image attached to this bug report*
  
  If the user tries to execute the same commands, he/she will see the
  following error:
  
-  $./run_tests.sh –with-selenium –selenium-headless 
+  $./run_tests.sh –with-selenium –selenium-headless
  Checking environment.
  Environment is up to date.
  Traceback (most recent call last):
-   File "/opt/stack/horizon/manage.py", line 23, in <module>
-     execute_from_command_line(sys.argv)
-   File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 354, in execute_from_command_line
-     utility.execute()
-   File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 303, in execute
-     settings.INSTALLED_APPS
-   File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 48, in __getattr__
-     self._setup(name)
-   File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 44, in _setup
-     self._wrapped = Settings(settings_module)
-   File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 92, in __init__
-     mod = importlib.import_module(self.SETTINGS_MODULE)
-   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
-     __import__(name)
+   File "/opt/stack/horizon/manage.py", line 23, in <module>
+     execute_from_command_line(sys.argv)
+   File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 354, in execute_from_command_line
+     utility.execute()
+   File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 303, in execute
+     settings.INSTALLED_APPS
+   File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 48, in __getattr__
+     self._setup(name)
+   File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 44, in _setup
+     self._wrapped = Settings(settings_module)
+   File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 92, in __init__
+     mod = importlib.import_module(self.SETTINGS_MODULE)
+   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
+     __import__(name)
  ImportError: No module named –with-selenium
  
  That is because there's no option named –with-selenium but --with-
  selenium.

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1559276

Title:
  Doc page not displaying command-line with appropriate styling.

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  This page http://docs.openstack.org/developer/horizon/testing.html
  contains instructions that tells the user how to start running tests
  for the Horizon project.

  I've detected two things wrong:
  1. There are some commands that are not properly formatted for visual 
purposes, e.g. mono-space font,  enclosed in a box.
  2.  Single hyphens are replaced by en dashes,
        $ ./run_tests.sh –with-selenium –selenium-headless should be $ 
./run_tests.sh --with-selenium --selenium-headless

  
  *See image attached to this bug report*

  If the user tries to execute the same commands, he/she will see the
  following error:

   $./run_tests.sh –with-selenium –selenium-headless
  Checking environment.
  Environment is up to date.
  Traceback (most recent call last):
    File "/opt/stack/horizon/manage.py", line 23, in <module>
      execute_from_command_line(sys.argv)
    File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 354, in execute_from_command_line
      utility.execute()
    File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/core/management/__init__.py",
 line 303, in execute
      settings.INSTALLED_APPS
    File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 48, in __getattr__
      self._setup(name)
    File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 44, in _setup
      self._wrapped = Settings(settings_module)
    File 
"/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py",
 line 92, in __init__
      mod = importlib.import_module(self.SETTINGS_MODULE)
    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
      __import__(name)
  ImportError: No module named –with-selenium

  That is because there's no option named –with-selenium but --with-
  selenium.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1559276/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to