import pytest
from mugloar import dragon, logger


@pytest.fixture
def log_instance():
    """Returns a Logger instance"""
    return logger.Logger()


@pytest.fixture
def knight():
    return {'agility': 8, 'endurance': 8, 'armor': 0, 'attack': 4}


@pytest.fixture
def dragon_instance():
    return dragon.Dragon()


@pytest.fixture
def stats_map():
    return {'attack': 'scaleThickness',
            'armor': 'clawSharpness',
            'agility': 'wingStrength',
            'endurance': 'fireBreath'}


def test_comparison(log_instance, knight, dragon_instance, stats_map):
    log_instance.comparison(knight, dragon_instance, stats_map)

import pytest
from mugloar import dragon, logger


@pytest.fixture
def log_instance():
    """Returns a Logger instance"""
    return logger.Logger()


@pytest.fixture
def knight():
    return [('endurance', 8), ('attack', 8), ('armor', 0), ('agility', 4)]


@pytest.fixture
def dragon_instance():
    return dragon.Dragon()


@pytest.fixture
def stats_map():
    return {'attack': 'scaleThickness',
            'armor': 'clawSharpness',
            'agility': 'wingStrength',
            'endurance': 'fireBreath'}


def test_comparison(log_instance, knight, dragon_instance, stats_map):
    dragon_instance.set_relative_stats((5, 5, 5, 5), knight)
    log_instance.comparison(knight, dragon_instance, stats_map)

Implement rudimentary unit tests for logger class
Implement rudimentary unit tests for logger class

  import pytest
  from mugloar import dragon, logger
  
  
  @pytest.fixture
  def log_instance():
      """Returns a Logger instance"""
      return logger.Logger()
  
  
  @pytest.fixture
  def knight():
-     return {'agility': 8, 'endurance': 8, 'armor': 0, 'attack': 4}
+     return [('endurance', 8), ('attack', 8), ('armor', 0), ('agility', 4)]
  
  
  @pytest.fixture
  def dragon_instance():
      return dragon.Dragon()
  
  
  @pytest.fixture
  def stats_map():
      return {'attack': 'scaleThickness',
              'armor': 'clawSharpness',
              'agility': 'wingStrength',
              'endurance': 'fireBreath'}
  
  
  def test_comparison(log_instance, knight, dragon_instance, stats_map):
+     dragon_instance.set_relative_stats((5, 5, 5, 5), knight)
      log_instance.comparison(knight, dragon_instance, stats_map)
  
Implement rudimentary unit tests for logger class
## Code Before:
import pytest
from mugloar import dragon, logger


@pytest.fixture
def log_instance():
    """Returns a Logger instance"""
    return logger.Logger()


@pytest.fixture
def knight():
    return {'agility': 8, 'endurance': 8, 'armor': 0, 'attack': 4}


@pytest.fixture
def dragon_instance():
    return dragon.Dragon()


@pytest.fixture
def stats_map():
    return {'attack': 'scaleThickness',
            'armor': 'clawSharpness',
            'agility': 'wingStrength',
            'endurance': 'fireBreath'}


def test_comparison(log_instance, knight, dragon_instance, stats_map):
    log_instance.comparison(knight, dragon_instance, stats_map)

## Instruction:
Implement rudimentary unit tests for logger class
## Code After:
import pytest
from mugloar import dragon, logger


@pytest.fixture
def log_instance():
    """Returns a Logger instance"""
    return logger.Logger()


@pytest.fixture
def knight():
    return [('endurance', 8), ('attack', 8), ('armor', 0), ('agility', 4)]


@pytest.fixture
def dragon_instance():
    return dragon.Dragon()


@pytest.fixture
def stats_map():
    return {'attack': 'scaleThickness',
            'armor': 'clawSharpness',
            'agility': 'wingStrength',
            'endurance': 'fireBreath'}


def test_comparison(log_instance, knight, dragon_instance, stats_map):
    dragon_instance.set_relative_stats((5, 5, 5, 5), knight)
    log_instance.comparison(knight, dragon_instance, stats_map)
