from __future__ import absolute_import

import pytest


def test_qtwebenginewidgets():
    """Test the qtpy.QtWebSockets namespace"""
    from qtpy import QtWebEngineWidgets

    assert QtWebEngineWidgets.QWebEnginePage is not None
    assert QtWebEngineWidgets.QWebEngineView is not None
    assert QtWebEngineWidgets.QWebEngineSettings is not None

from __future__ import absolute_import

import pytest
from qtpy import QtWebEngineWidgets


def test_qtwebenginewidgets():
    """Test the qtpy.QtWebSockets namespace"""

    assert QtWebEngineWidgets.QWebEnginePage is not None
    assert QtWebEngineWidgets.QWebEngineView is not None
    assert QtWebEngineWidgets.QWebEngineSettings is not None

Fix failing tests in Python 2
Tesitng: Fix failing tests in Python 2

  from __future__ import absolute_import
  
  import pytest
+ from qtpy import QtWebEngineWidgets
  
  
  def test_qtwebenginewidgets():
      """Test the qtpy.QtWebSockets namespace"""
-     from qtpy import QtWebEngineWidgets
  
      assert QtWebEngineWidgets.QWebEnginePage is not None
      assert QtWebEngineWidgets.QWebEngineView is not None
      assert QtWebEngineWidgets.QWebEngineSettings is not None
  
Fix failing tests in Python 2
## Code Before:
from __future__ import absolute_import

import pytest


def test_qtwebenginewidgets():
    """Test the qtpy.QtWebSockets namespace"""
    from qtpy import QtWebEngineWidgets

    assert QtWebEngineWidgets.QWebEnginePage is not None
    assert QtWebEngineWidgets.QWebEngineView is not None
    assert QtWebEngineWidgets.QWebEngineSettings is not None

## Instruction:
Fix failing tests in Python 2
## Code After:
from __future__ import absolute_import

import pytest
from qtpy import QtWebEngineWidgets


def test_qtwebenginewidgets():
    """Test the qtpy.QtWebSockets namespace"""

    assert QtWebEngineWidgets.QWebEnginePage is not None
    assert QtWebEngineWidgets.QWebEngineView is not None
    assert QtWebEngineWidgets.QWebEngineSettings is not None
