<commit_before># -*- coding: utf-8 -*-
import os
import sys
sys.path.insert(0,
                os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

import pytest 
import astral


def test_Dawn_NeverReachesDepression():
    with pytest.raises(astral.AstralError):
        a = astral.Astral()
        l = a['London']
        l.solar_depression = 18
        l.dawn(local=True)<commit_msg>Changed test to use fixed date and location specified in bug report #1586829<commit_after># -*- coding: utf-8 -*-

from __future__ import unicode_literals
import os
import sys
sys.path.insert(0,
                os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))

import pytest 
import astral
import datetime


def test_Dawn_NeverReachesDepression():
    d = datetime.date(2016, 5, 29)
    with pytest.raises(astral.AstralError):
        l = astral.Location(("Ghent", "Belgium", "51°3'N", "3°44'W", "Europe/Brussels"))
        l.solar_depression = 18
        l.dawn(date=d, local=True)
{'fraction_non_alphanumeric': 0.1398390342052314, 'fraction_numerical': 0.028169014084507043, 'mean_word_length': 3.234042553191489, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3503587', 'n_tokens_mistral': 373, 'n_tokens_neox': 353, 'n_words': 72}