<commit_before>import pytest

import datetime
from bs4 import BeautifulSoup

from furaffinity.submission import FASubmission
from furaffinity.errors import *

with open("tests/resources/submission.html") as dummy:
    soup = BeautifulSoup(dummy, "html.parser")


def test_init():
    assert FASubmission(soup, '00001')


def test_basics():
    submission = FASubmission(soup, '00001')
    assert submission.title == "Test File"
    assert submission.uploader == "Fakeartist"
    assert submission.description == "This is a test file I made for foobar!"


def test_details():
    submission = FASubmission(soup, '00001')
    assert submission.category == "Artwork (Digital)"
    assert submission.theme == "General Furry Art"
    assert submission.species == "Unspecified / Any"
    assert submission.gender == "Other / Not Specified"


def test_stats():
    submission = FASubmission(soup, '00001')
    assert submission.favorites == 199
    assert submission.comments == 5
    assert submission.views == 1026
    assert submission.rating == "General"

<commit_msg>Push updated tests.<commit_after>import pytest

import datetime
from bs4 import BeautifulSoup

from furaffinity.submission import FASubmission
from furaffinity.errors import *

with open("tests/resources/submission.html") as dummy:
    soup = BeautifulSoup(dummy, "html.parser")


def test_init():
    assert FASubmission(soup, '00001')


def test_basics():
    submission = FASubmission(soup, '00001')
    assert submission.title == "Test File"
    assert submission.uploader == "Fakeartist"
    assert submission.description == "This is a test file I made for foobar!"


def test_details():
    submission = FASubmission(soup, '00001')
    assert submission.category == "Artwork (Digital)"
    assert submission.theme == "General Furry Art"
    assert submission.species == "Unspecified / Any"
    assert submission.gender == "Other / Not Specified"


def test_stats():
    submission = FASubmission(soup, '00001')
    assert submission.favorite_count == 199
    assert submission.comment_count == 5
    assert submission.view_count == 1026
    assert submission.rating == "General"


{'fraction_non_alphanumeric': 0.10274291027429103, 'fraction_numerical': 0.02696420269642027, 'mean_word_length': 4.248780487804878, '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': '1428024', 'n_tokens_mistral': 674, 'n_tokens_neox': 616, 'n_words': 182}