# Path: tests/fixtures/boards.py
# class BoardData(object):
#     '''
#     Values taken from kano.utils.hardware so that we avoid having to import the
#     module in the fixture
#     '''
#     RPI_A_KEY = 'RPI/A'
#     RPI_A_PLUS_KEY = 'RPI/A+'
#     RPI_B_BETA_KEY = 'RPI/B (Beta)'
#     RPI_B_KEY = 'RPI/B'
#     RPI_B_PLUS_KEY = 'RPI/B+'
#     RPI_ZERO_KEY = 'RPI/Zero'
#     RPI_ZERO_W_KEY = 'RPI/Zero/W'
#     RPI_COMPUTE_KEY = 'RPI/Compute'
#     RPI_COMPUTE_3_KEY = 'RPI/Compute/3'
#     RPI_2_B_KEY = 'RPI/2/B'
#     RPI_3_KEY = 'RPI/3'
# 
#     RPI_A_SCORE = 1000
#     RPI_A_PLUS_SCORE = 1000
#     RPI_B_SCORE = 2000
#     RPI_B_PLUS_SCORE = 2000
#     RPI_ZERO_SCORE = 3000
#     RPI_ZERO_W_SCORE = 3000
#     RPI_COMPUTE_SCORE = 4000
#     RPI_2_B_SCORE = 5000
#     RPI_COMPUTE_3_SCORE = 7000
#     RPI_3_SCORE = 7000
# 
#     RPI_1_CPU_PROFILE = 'rpi_1'
#     RPI_2_CPU_PROFILE = 'rpi_2'
#     RPI_3_CPU_PROFILE = 'rpi_3'


import os
import json
import pytest
from tests.fixtures.boards import BoardData
#
# cpu.py
#
# Copyright (C) 2018 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
#
# Fixtures for fake /proc/cpuinfo files
#





CPUINFO_DIR = os.path.join(
    os.path.dirname(os.path.realpath(__file__)), 'cpuinfo'
)
# TODO: Add configurations for other RPi devices
PLATFORMS = [
    ('rpi_3', BoardData.RPI_3_KEY),

# Path: tests/fixtures/boards.py
# class BoardData(object):
#     '''
#     Values taken from kano.utils.hardware so that we avoid having to import the
#     module in the fixture
#     '''
#     RPI_A_KEY = 'RPI/A'
#     RPI_A_PLUS_KEY = 'RPI/A+'
#     RPI_B_BETA_KEY = 'RPI/B (Beta)'
#     RPI_B_KEY = 'RPI/B'
#     RPI_B_PLUS_KEY = 'RPI/B+'
#     RPI_ZERO_KEY = 'RPI/Zero'
#     RPI_ZERO_W_KEY = 'RPI/Zero/W'
#     RPI_COMPUTE_KEY = 'RPI/Compute'
#     RPI_COMPUTE_3_KEY = 'RPI/Compute/3'
#     RPI_2_B_KEY = 'RPI/2/B'
#     RPI_3_KEY = 'RPI/3'
# 
#     RPI_A_SCORE = 1000
#     RPI_A_PLUS_SCORE = 1000
#     RPI_B_SCORE = 2000
#     RPI_B_PLUS_SCORE = 2000
#     RPI_ZERO_SCORE = 3000
#     RPI_ZERO_W_SCORE = 3000
#     RPI_COMPUTE_SCORE = 4000
#     RPI_2_B_SCORE = 5000
#     RPI_COMPUTE_3_SCORE = 7000
#     RPI_3_SCORE = 7000
# 
#     RPI_1_CPU_PROFILE = 'rpi_1'
#     RPI_2_CPU_PROFILE = 'rpi_2'
#     RPI_3_CPU_PROFILE = 'rpi_3'


# Path: tests/fixtures/cpu.py
import os
import json
import pytest
from tests.fixtures.boards import BoardData

#
# cpu.py
#
# Copyright (C) 2018 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU GPL v2
#
# Fixtures for fake /proc/cpuinfo files
#





CPUINFO_DIR = os.path.join(
    os.path.dirname(os.path.realpath(__file__)), 'cpuinfo'
)
# TODO: Add configurations for other RPi devices
PLATFORMS = [
    ('rpi_3', BoardData.RPI_3_KEY),

    ('rpi_2', BoardData.RPI_2_B_KEY),