Skip to content

Commit

Permalink
put an actual fake test in
Browse files Browse the repository at this point in the history
  • Loading branch information
bdpedigo committed Dec 13, 2023
1 parent b74e00c commit ce6b52d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
Empty file added networkframe/test/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion networkframe/networkframe.py → networkframe/test/test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Main module."""
"""module"""


def my_func(a: int, b: int) -> int:
Expand Down
20 changes: 4 additions & 16 deletions tests/test_networkframe.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
#!/usr/bin/env python
"""Tests for `networkframe` package."""

import pytest
from networkframe.test import my_func


@pytest.fixture
def response():
"""Sample pytest fixture.
See more at: http://doc.pytest.org/en/latest/fixture.html
"""
# import requests
# return requests.get('https://github.com/audreyr/cookiecutter-pypackage')


def test_content(response):
"""Sample pytest test function with the pytest fixture as an argument."""
# from bs4 import BeautifulSoup
# assert 'GitHub' in BeautifulSoup(response.content).title.string
del response
def test_my_func():
"""Test the my_func function."""
assert my_func(1, 2) == 3

0 comments on commit ce6b52d

Please sign in to comment.