Skip to content

Commit e1ca717

Browse files
committed
fix: remove from .gitignore test_files
1 parent db9e423 commit e1ca717

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@ dist/
66
.coverage
77
coverage.xml
88
*_cache/
9-
file1.json
10-
file2.json

gendiff/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import argparse
22

33

4-
def parse_args():
4+
def parse_args(args=None):
55
parser = argparse.ArgumentParser(
66
prog='gendiff',
77
description='Compares two configuration files and shows a difference.',
@@ -12,4 +12,4 @@ def parse_args():
1212
parser.add_argument('first_file')
1313
parser.add_argument('second_file')
1414

15-
return parser.parse_args()
15+
return parser.parse_args(args)

tests/test_data/file1.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"host": "hexlet.io",
3+
"timeout": 50,
4+
"proxy": "123.234.53.22",
5+
"follow": false
6+
}
7+

tests/test_data/file2.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"timeout": 20,
3+
"verbose": true,
4+
"host": "hexlet.io"
5+
}
6+

0 commit comments

Comments
 (0)