
import os

import pytest

from tests.utils import VuforiaServerCredentials


@pytest.fixture()
def vuforia_server_credentials() -> VuforiaServerCredentials:
    """
    Return VWS credentials from environment variables.
    """
    credentials = VuforiaServerCredentials(
        database_name=os.environ['VUFORIA_TARGET_MANAGER_DATABASE_NAME'],
        access_key=os.environ['VUFORIA_SERVER_ACCESS_KEY'],
        secret_key=os.environ['VUFORIA_SERVER_SECRET_KEY'],
    )  # type: VuforiaServerCredentials
    return credentials


import os

import pytest

from tests.utils import VuforiaServerCredentials


@pytest.fixture()
def vuforia_server_credentials() -> VuforiaServerCredentials:
    """
    Return VWS credentials from environment variables.
    """
    credentials = VuforiaServerCredentials(
        database_name=os.environ['VUFORIA_TARGET_MANAGER_DATABASE_NAME'],
        access_key=os.environ['VUFORIA_SERVER_ACCESS_KEY'],
        secret_key=os.environ['VUFORIA_SERVER_SECRET_KEY'],
    )  # type: VuforiaServerCredentials
    return credentials


@pytest.fixture()
def vuforia_inactive_server_credentials() -> VuforiaServerCredentials:
    """
    Return VWS credentials for an inactive project from environment variables.
    """
    credentials = VuforiaServerCredentials(
        database_name=os.environ['VUFORIA_TARGET_MANAGER_DATABASE_NAME'],
        access_key=os.environ['VUFORIA_SERVER_ACCESS_KEY'],
        secret_key=os.environ['VUFORIA_SERVER_SECRET_KEY'],
    )  # type: VuforiaServerCredentials
    return credentials

Create credentials fixture for inactive project
Create credentials fixture for inactive project

  
  import os
  
  import pytest
  
  from tests.utils import VuforiaServerCredentials
  
  
  @pytest.fixture()
  def vuforia_server_credentials() -> VuforiaServerCredentials:
      """
      Return VWS credentials from environment variables.
      """
      credentials = VuforiaServerCredentials(
          database_name=os.environ['VUFORIA_TARGET_MANAGER_DATABASE_NAME'],
          access_key=os.environ['VUFORIA_SERVER_ACCESS_KEY'],
          secret_key=os.environ['VUFORIA_SERVER_SECRET_KEY'],
      )  # type: VuforiaServerCredentials
      return credentials
  
+ 
+ @pytest.fixture()
+ def vuforia_inactive_server_credentials() -> VuforiaServerCredentials:
+     """
+     Return VWS credentials for an inactive project from environment variables.
+     """
+     credentials = VuforiaServerCredentials(
+         database_name=os.environ['VUFORIA_TARGET_MANAGER_DATABASE_NAME'],
+         access_key=os.environ['VUFORIA_SERVER_ACCESS_KEY'],
+         secret_key=os.environ['VUFORIA_SERVER_SECRET_KEY'],
+     )  # type: VuforiaServerCredentials
+     return credentials
+ 
Create credentials fixture for inactive project
## Code Before:

import os

import pytest

from tests.utils import VuforiaServerCredentials


@pytest.fixture()
def vuforia_server_credentials() -> VuforiaServerCredentials:
    """
    Return VWS credentials from environment variables.
    """
    credentials = VuforiaServerCredentials(
        database_name=os.environ['VUFORIA_TARGET_MANAGER_DATABASE_NAME'],
        access_key=os.environ['VUFORIA_SERVER_ACCESS_KEY'],
        secret_key=os.environ['VUFORIA_SERVER_SECRET_KEY'],
    )  # type: VuforiaServerCredentials
    return credentials

## Instruction:
Create credentials fixture for inactive project
## Code After:

import os

import pytest

from tests.utils import VuforiaServerCredentials


@pytest.fixture()
def vuforia_server_credentials() -> VuforiaServerCredentials:
    """
    Return VWS credentials from environment variables.
    """
    credentials = VuforiaServerCredentials(
        database_name=os.environ['VUFORIA_TARGET_MANAGER_DATABASE_NAME'],
        access_key=os.environ['VUFORIA_SERVER_ACCESS_KEY'],
        secret_key=os.environ['VUFORIA_SERVER_SECRET_KEY'],
    )  # type: VuforiaServerCredentials
    return credentials


@pytest.fixture()
def vuforia_inactive_server_credentials() -> VuforiaServerCredentials:
    """
    Return VWS credentials for an inactive project from environment variables.
    """
    credentials = VuforiaServerCredentials(
        database_name=os.environ['VUFORIA_TARGET_MANAGER_DATABASE_NAME'],
        access_key=os.environ['VUFORIA_SERVER_ACCESS_KEY'],
        secret_key=os.environ['VUFORIA_SERVER_SECRET_KEY'],
    )  # type: VuforiaServerCredentials
    return credentials
