old_contents: # This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  
  import os
  from datetime import datetime
  
  import pytest
  from py.xml import html
  
  from axe_selenium_python import Axe
  
  _DEFAULT_SCRIPT = os.path.join(os.path.dirname(__file__), 'src', 'axe.min.js')
  
  
  @pytest.fixture
  def script_url():
      """Return a script URL."""
      return _DEFAULT_SCRIPT
  
  
  @pytest.fixture(scope='function')
  def axe(selenium, base_url, script_url):
      """Return an Axe instance based on context and options."""
      selenium.get(base_url)
      yield Axe(selenium, script_url)
  
  
  @pytest.mark.optionalhook
  def pytest_html_results_table_header(cells):
      """Add description and sortable time header to HTML report."""
      cells.insert(2, html.th('Description'))
      cells.insert(0, html.th('Time', class_='sortable time', col='time'))
  
  
  @pytest.mark.optionalhook
  def pytest_html_results_table_row(report, cells):
      """Add description and sortable time column to HTML report."""
      cells.insert(2, html.td(report.description))
      cells.insert(1, html.td(datetime.utcnow(), class_='col-time'))
  
  
  @pytest.mark.hookwrapper
  def pytest_runtest_makereport(item, call):
      """Make HTML report using test-function docstrings as description."""
      outcome = yield
      report = outcome.get_result()
      # add docstring to 'description' column
      report.description = str(item.function.__doc__)
  
new_contents: # This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  
  import os
  from datetime import datetime
  
  import pytest
  from axe_selenium_python import Axe
  from py.xml import html
  
  _DEFAULT_SCRIPT = os.path.join(os.path.dirname(__file__), 'src', 'axe.min.js')
  
  
  @pytest.fixture
  def script_url():
      """Return a script URL."""
      return _DEFAULT_SCRIPT
  
  
  @pytest.fixture(scope='function')
  def axe(selenium, base_url, script_url):
      """Return an Axe instance based on context and options."""
      selenium.get(base_url)
      yield Axe(selenium, script_url)
  
  
  @pytest.mark.optionalhook
  def pytest_html_results_table_header(cells):
      """Add description and sortable time header to HTML report."""
      cells.insert(2, html.th('Description'))
      cells.insert(0, html.th('Time', class_='sortable time', col='time'))
  
  
  @pytest.mark.optionalhook
  def pytest_html_results_table_row(report, cells):
      """Add description and sortable time column to HTML report."""
      cells.insert(2, html.td(report.description))
      cells.insert(1, html.td(datetime.utcnow(), class_='col-time'))
  
  
  @pytest.mark.hookwrapper
  def pytest_runtest_makereport(item, call):
      """Make HTML report using test-function docstrings as description."""
      outcome = yield
      report = outcome.get_result()
      # add docstring to 'description' column
      report.description = str(item.function.__doc__)
  
subject: Fix flake8-isort errors