diff --git a/index.test.tsx b/index.test.tsx new file mode 100644 index 0000000..4e3dfb7 --- /dev/null +++ b/index.test.tsx @@ -0,0 +1,10 @@ +import { render, screen } from '@testing-library/react' +import Home from '../pages/index' + +describe('Home', () => { + it('renders the Opire logo', () => { + render() + const logo = screen.getByAltText('Opire Logo') + expect(logo).toBeInTheDocument() + }) +}) \ No newline at end of file diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..6dfbf1d --- /dev/null +++ b/pytest.ini @@ -0,0 +1,7 @@ +[pytest] +minversion = 6.0 +addopts = -ra -q +testpaths = tests +python_files = test_*.py +python_classes = Test* +python_functions = test_* \ No newline at end of file diff --git a/test_example.py b/test_example.py new file mode 100644 index 0000000..686a2c8 --- /dev/null +++ b/test_example.py @@ -0,0 +1 @@ +def test_example(): assert 1 == 1 \ No newline at end of file