-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from codePerfectPlus/type-check
docs: cli useage updated in README.md
- Loading branch information
Showing
8 changed files
with
80 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from random_profile.main import RandomProfile | ||
from random_profile.main import RandomProfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,49 @@ | ||
import unittest | ||
from random_profile import RandomProfile | ||
|
||
import sys | ||
sys.path.append('.') | ||
from random_profile import RandomProfile | ||
|
||
random_profile = RandomProfile(num=1) | ||
|
||
|
||
class RandomProfileTest(unittest.TestCase): | ||
def test_fname(self): | ||
self.assertEqual(len(random_profile.first_name()), 1) | ||
|
||
def test_faname_with_num(self): | ||
self.assertEqual(len(RandomProfile(num=10).first_name()), 10) | ||
|
||
def test_lname(self): | ||
self.assertEqual(len(random_profile.last_name()), 1) | ||
|
||
def test_lname_with_num(self): | ||
self.assertEqual(len(RandomProfile(num=10).last_name()), 10) | ||
|
||
def test_full_name(self): | ||
self.assertEqual(len(random_profile.full_name()), 1) | ||
def test_full_profile_with_num(self): | ||
self.assertEqual(len(RandomProfile(num=10).full_profile()), 10) | ||
|
||
def test_full_name_with_num(self): | ||
self.assertEqual(len(RandomProfile(num=10).full_name()), 10) | ||
|
||
def test_full_profile(self): | ||
self.assertEqual(len(random_profile.full_profile()), 1) | ||
|
||
def test_full_profile_with_num(self): | ||
self.assertEqual(len(RandomProfile(num=10).full_profile()), 10) | ||
|
||
def test_ipv4(self): | ||
self.assertEqual(len(random_profile.ipv4()), 1) | ||
|
||
def test_ipv4_with_num(self): | ||
self.assertEqual(len(RandomProfile(num=10).ipv4()), 10) | ||
|
||
def test_job_title(self): | ||
self.assertEqual(len(random_profile.job_title()), 1) | ||
|
||
def test_job_title_with_num(self): | ||
self.assertEqual(len(RandomProfile(num=10).job_title()), 10) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() | ||
unittest.main() |