Skip to content

Commit b753bd5

Browse files
committed
update
1 parent 3e0683c commit b753bd5

File tree

7 files changed

+11
-149
lines changed

7 files changed

+11
-149
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,4 @@ only_addresses.csv
148148
/.vscode
149149
.DS_Store
150150
*.code-workspace
151+
test_config.yaml

src/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
## Location of the address file
16-
address_file : './tests/only_addresses.csv'
16+
address_file : './sample-data/only_addresses.csv'
1717

1818
## Provide the columns which needs to be concatenated to get the address
1919
# column_numbers : [3,4,5,6,7]
@@ -28,7 +28,7 @@ shelve_db : 'addresses'
2828
separator : ' '
2929

3030
## API KEY
31-
api_key : 'YOUR_API_KEY'
31+
api_key : 'AIzaSyD_sJl0qMA65CYHMBokVfMNA7AKyt5ERYs'
3232

3333
## Name of the output csv file
3434
output_csv : './output.csv'

src/config_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import yaml
1717
import argparse
1818

19-
_DEFAULT_CONFIG_FILE='test_config.yaml'
19+
_DEFAULT_CONFIG_FILE='config.yaml'
2020

2121
class Config:
2222

src/main.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@ def create_export_json():
146146
outputJson=json.dumps(dict(address_shelve), indent=4 )
147147
return outputJson
148148

149-
# Store duplicate addresses, output_csv will process addresses once
150-
def print_duplication():
151-
152-
with open('duplicationReport.csv', 'w') as duplication_report:
153-
154-
for key in read_write_addresses.global_duplicate_counter.keys():
155-
duplication_report.write("%s,%s\n"%(key,read_write_addresses.global_duplicate_counter[key]))
149+
# Store duplicate addresses, output_csv will process addresses once
150+
def print_duplication():
151+
152+
with open('duplicationReport.csv', 'w') as duplication_report:
153+
154+
for key in read_write_addresses.global_duplicate_counter.keys():
155+
duplication_report.write("%s,%s\n"%(key,read_write_addresses.global_duplicate_counter[key]))
156156

157157
"""_summary_:
158158
Delete the shelve file after it is done

tests/test_addressvalidation.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

tests/test_av_result_parser.py

Lines changed: 0 additions & 44 deletions
This file was deleted.

tests/test_config.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)