# Path: onix/scrapers.py
# def get_commit_from_timestamp(timestamp):
# def _write(data, destination_filename):
# def _scrape(url, entry, commit=None, destination_filename=None):
# def scrape_battle_formats_data(commit=None):
# def scrape_battle_pokedex(commit=None):
# def scrape_battle_aliases(commit=None):
# def scrape_battle_items(commit=None):
# def scrape_battle_movedex(commit=None):
# def scrape_formats(commit=None):


import datetime
import json
import os
import shutil
import pytest
from onix import scrapers
"""Tests for scrapers module"""




@pytest.mark.online
def test_get_commit_from_timestamp():
    expected = 'f4e01502cc36c90dd3150d845ef6406554a77a0e'
    timestamp = datetime.datetime(2016, 12, 5, 5, 0)

# Path: onix/scrapers.py
# def get_commit_from_timestamp(timestamp):
# def _write(data, destination_filename):
# def _scrape(url, entry, commit=None, destination_filename=None):
# def scrape_battle_formats_data(commit=None):
# def scrape_battle_pokedex(commit=None):
# def scrape_battle_aliases(commit=None):
# def scrape_battle_items(commit=None):
# def scrape_battle_movedex(commit=None):
# def scrape_formats(commit=None):


# Path: tests/test_scrapers.py
import datetime
import json
import os
import shutil
import pytest
from onix import scrapers

"""Tests for scrapers module"""




@pytest.mark.online
def test_get_commit_from_timestamp():
    expected = 'f4e01502cc36c90dd3150d845ef6406554a77a0e'
    timestamp = datetime.datetime(2016, 12, 5, 5, 0)

    assert expected == scrapers.get_commit_from_timestamp(timestamp)