Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-2520

Gatling: user.test_userprefs.UserPrefsTestCase fails: 'NoneType' object has no attribute 'has_section'

    XMLWordPrintable

    Details

      Description

      Gatling: it's not possible to run a subset of tests only

      It's no longer possible to run just a subset of tests with Gatling. I can only run all. If I try to run a subset I receive the following error:

      ./gatling.py -t dev-silver user.test_userprefs.UserPrefsTestCase
      E
      ======================================================================
      ERROR: setUpClass (user.test_userprefs.UserPrefsTestCase)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/srv/openattic/gatling/user/scenarios.py", line 29, in setUpClass
          cls.require_enabled("user")
        File "/srv/openattic/gatling/testcase.py", line 48, in require_enabled
          cls.require_config(section, "enabled")
        File "/srv/openattic/gatling/testcase.py", line 35, in require_config
          if not cls.conf.has_section(section):
      AttributeError: 'NoneType' object has no attribute 'has_section'
      
      ----------------------------------------------------------------------
      Ran 0 tests in 0.000s
      
      FAILED (errors=1)
      

      openATTIC's command log did not record any failed commands during the test period.

      Maybe this is caused by an update of python-testtools or python-xmlrunner.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            tdehler Dehler, Tatjana
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: