import os

import testinfra.utils.ansible_runner

testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
    os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')


def test_command(host):
    assert host.command('i3 --version').rc == 0
    assert host.command('pactl --version').rc == 0
    assert host.command('Xorg -version').rc == 0

import os

import testinfra.utils.ansible_runner

testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
    os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')


def test_command(host):
    assert host.command('i3 --version').rc == 0
    assert host.command('pactl --version').rc == 0

Remove redundant xorg command test
Remove redundant xorg command test

  import os
  
  import testinfra.utils.ansible_runner
  
  testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
      os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
  
  
  def test_command(host):
      assert host.command('i3 --version').rc == 0
      assert host.command('pactl --version').rc == 0
-     assert host.command('Xorg -version').rc == 0
  
Remove redundant xorg command test
## Code Before:
import os

import testinfra.utils.ansible_runner

testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
    os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')


def test_command(host):
    assert host.command('i3 --version').rc == 0
    assert host.command('pactl --version').rc == 0
    assert host.command('Xorg -version').rc == 0

## Instruction:
Remove redundant xorg command test
## Code After:
import os

import testinfra.utils.ansible_runner

testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
    os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')


def test_command(host):
    assert host.command('i3 --version').rc == 0
    assert host.command('pactl --version').rc == 0
