
import unittest

from testscenarios.scenarios import generate_scenarios

TEST_MODULES = [
    'models.attachment',
    'models.bundle',
    'models.bundle_stream',
    'models.hw_device',
    'models.named_attribute',
    'models.sw_package',
    'models.test',
    'models.test_case',
    'models.test_result',
    'models.test_run',
    'other.deserialization',
    'other.tests',
]

def suite():
    loader = unittest.TestLoader()
    test_suite = unittest.TestSuite()
    for name in TEST_MODULES:
        tests = loader.loadTestsFromName('dashboard_app.tests.' + name)
        test_suite.addTests(generate_scenarios(tests))
    return test_suite


import unittest

from testscenarios.scenarios import generate_scenarios

TEST_MODULES = [
    'models.attachment',
    'models.bundle',
    'models.bundle_stream',
    'models.hw_device',
    'models.named_attribute',
    'models.sw_package',
    'models.test',
    'models.test_case',
    'models.test_result',
    'models.test_run',
    'other.csrf',
    'other.deserialization',
    'other.tests',
]

def suite():
    loader = unittest.TestLoader()
    test_suite = unittest.TestSuite()
    for name in TEST_MODULES:
        tests = loader.loadTestsFromName('dashboard_app.tests.' + name)
        test_suite.addTests(generate_scenarios(tests))
    return test_suite

Add reference to csrf tests in tests loader list
Add reference to csrf tests in tests loader list


  
  import unittest
  
  from testscenarios.scenarios import generate_scenarios
  
  TEST_MODULES = [
      'models.attachment',
      'models.bundle',
      'models.bundle_stream',
      'models.hw_device',
      'models.named_attribute',
      'models.sw_package',
      'models.test',
      'models.test_case',
      'models.test_result',
      'models.test_run',
+     'other.csrf',
      'other.deserialization',
      'other.tests',
  ]
  
  def suite():
      loader = unittest.TestLoader()
      test_suite = unittest.TestSuite()
      for name in TEST_MODULES:
          tests = loader.loadTestsFromName('dashboard_app.tests.' + name)
          test_suite.addTests(generate_scenarios(tests))
      return test_suite
  
Add reference to csrf tests in tests loader list
## Code Before:

import unittest

from testscenarios.scenarios import generate_scenarios

TEST_MODULES = [
    'models.attachment',
    'models.bundle',
    'models.bundle_stream',
    'models.hw_device',
    'models.named_attribute',
    'models.sw_package',
    'models.test',
    'models.test_case',
    'models.test_result',
    'models.test_run',
    'other.deserialization',
    'other.tests',
]

def suite():
    loader = unittest.TestLoader()
    test_suite = unittest.TestSuite()
    for name in TEST_MODULES:
        tests = loader.loadTestsFromName('dashboard_app.tests.' + name)
        test_suite.addTests(generate_scenarios(tests))
    return test_suite

## Instruction:
Add reference to csrf tests in tests loader list
## Code After:

import unittest

from testscenarios.scenarios import generate_scenarios

TEST_MODULES = [
    'models.attachment',
    'models.bundle',
    'models.bundle_stream',
    'models.hw_device',
    'models.named_attribute',
    'models.sw_package',
    'models.test',
    'models.test_case',
    'models.test_result',
    'models.test_run',
    'other.csrf',
    'other.deserialization',
    'other.tests',
]

def suite():
    loader = unittest.TestLoader()
    test_suite = unittest.TestSuite()
    for name in TEST_MODULES:
        tests = loader.loadTestsFromName('dashboard_app.tests.' + name)
        test_suite.addTests(generate_scenarios(tests))
    return test_suite
