Skip to content

Commit 7a83095

Browse files
author
krsm
committed
Adding code related to pytest
1 parent 289961e commit 7a83095

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

Unitests/pystest_stdy/capitalize.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
4+
Simple study related to pytest
5+
6+
"""
7+
8+
9+
def capitalize_string(str):
10+
return str.capitalize()
11+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
4+
Simple study related to pytest
5+
6+
"""
7+
8+
import pytest
9+
from Unitests.pystest_stdy import capitalize
10+
11+
12+
# first test
13+
def test_capitalize_string():
14+
c = capitalize.capitalize_string('pytest')
15+
assert c == 'Pytest'
16+

0 commit comments

Comments
 (0)