This repository was archived by the owner on Jun 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 1+ '''
2+ project interface
3+ '''
4+
5+
16from .base import fib , hello , add42
27
3- version = "0.0.3 "
8+ VERSION = "0.0.4 "
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22# -*- coding: utf-8 -*-
33
4+ '''
5+ basic functions
6+ '''
7+
48
59def fib (number : int ) -> int :
610 '''
Original file line number Diff line number Diff line change 11from setuptools import find_packages , setup
22
33
4- version = __import__ ('everywhere' ).version
4+ version = __import__ ('everywhere' ).VERSION
55exclude_from_packages = []
66requires = []
77
Original file line number Diff line number Diff line change 1- from everywhere import fib , hello , add42
1+ '''
2+ Project's testing code
3+ '''
4+
25import pytest
6+ from everywhere import fib , hello , add42
37
48
59@pytest .mark .parametrize ("test_input, expected" , [
1216 (6 , 8 ),
1317])
1418def test_fib (test_input , expected ):
19+ '''
20+ test fib
21+ '''
1522 assert fib (test_input ) == expected
1623
1724
1825def test_hello ():
26+ '''
27+ test hello
28+ '''
1929 assert hello () == "Hello World"
2030
2131
@@ -26,4 +36,7 @@ def test_hello():
2636 (- 2 , 40 ),
2737])
2838def test_add42 (test_input , expected ):
39+ '''
40+ test add42
41+ '''
2942 assert add42 (test_input ) == expected
You can’t perform that action at this time.
0 commit comments