
from zope.testing import doctest
import unittest
import zeit.cms.testing
import zeit.workflow.testing


def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(zeit.cms.testing.FunctionalDocFileSuite(
        'README.txt',
        layer=zeit.workflow.testing.WorkflowLayer,
        product_config={'zeit.workflow': zeit.workflow.testing.product_config}
    ))
    return suite


import zeit.cms.testing
import zeit.workflow.testing


def test_suite():
    return zeit.cms.testing.FunctionalDocFileSuite(
        'README.txt',
        layer=zeit.workflow.testing.WorkflowLayer
    )

Remove superfluous (and wrong!) product config declaration
Remove superfluous (and wrong!) product config declaration

  
- from zope.testing import doctest
- import unittest
  import zeit.cms.testing
  import zeit.workflow.testing
  
  
  def test_suite():
-     suite = unittest.TestSuite()
-     suite.addTest(zeit.cms.testing.FunctionalDocFileSuite(
+     return zeit.cms.testing.FunctionalDocFileSuite(
          'README.txt',
-         layer=zeit.workflow.testing.WorkflowLayer,
+         layer=zeit.workflow.testing.WorkflowLayer
-         product_config={'zeit.workflow': zeit.workflow.testing.product_config}
-     ))
+     )
-     return suite
  
Remove superfluous (and wrong!) product config declaration
## Code Before:

from zope.testing import doctest
import unittest
import zeit.cms.testing
import zeit.workflow.testing


def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(zeit.cms.testing.FunctionalDocFileSuite(
        'README.txt',
        layer=zeit.workflow.testing.WorkflowLayer,
        product_config={'zeit.workflow': zeit.workflow.testing.product_config}
    ))
    return suite

## Instruction:
Remove superfluous (and wrong!) product config declaration
## Code After:

import zeit.cms.testing
import zeit.workflow.testing


def test_suite():
    return zeit.cms.testing.FunctionalDocFileSuite(
        'README.txt',
        layer=zeit.workflow.testing.WorkflowLayer
    )
