Skip to content

Commit

Permalink
Merge 1cedf93 into 5748edd
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed Dec 5, 2020
2 parents 5748edd + 1cedf93 commit be14c45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion beancount_import/source/generic_importer_source_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
os.path.join(
os.path.dirname(__file__), '..', '..', 'testdata', 'source', 'generic_importer'))

testdata_csv = os.path.join(testdata_dir, "csv")

examples = [
'test_basic',
'test_invalid',
Expand All @@ -31,7 +33,7 @@ def test_source(name: str):
example_dir=os.path.join(testdata_dir, name),
source_spec={
'module': 'beancount_import.source.generic_importer_source',
'directory': testdata_dir,
'directory': testdata_csv,
'account': 'Assets:Bank',
'importer': importer,
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;; date: 2020-01-01
;; info: {"filename": "<testdata>/generic_statement.csv", "line": 1, "type": "text/csv"}
;; info: {"filename": "<testdata>/csv/generic_statement.csv", "line": 1, "type": "text/csv"}

; features: [
; {
Expand All @@ -18,7 +18,7 @@
Expenses:FIXME 1 USD

;; date: 2020-01-01
;; info: {"filename": "<testdata>/generic_statement.csv", "line": 2, "type": "text/csv"}
;; info: {"filename": "<testdata>/csv/generic_statement.csv", "line": 2, "type": "text/csv"}

; features: [
; {
Expand All @@ -37,7 +37,7 @@
Expenses:FIXME 1 USD

;; date: 2020-01-02
;; info: {"filename": "<testdata>/generic_statement.csv", "line": 3, "type": "text/csv"}
;; info: {"filename": "<testdata>/csv/generic_statement.csv", "line": 3, "type": "text/csv"}

; features: [
; {
Expand All @@ -56,7 +56,7 @@
Expenses:FIXME -1 USD

;; date: 2020-01-02
;; info: {"filename": "<testdata>/generic_statement.csv", "line": 5, "type": "text/csv"}
;; info: {"filename": "<testdata>/csv/generic_statement.csv", "line": 5, "type": "text/csv"}

; features: [
; {
Expand All @@ -75,7 +75,7 @@
Expenses:FIXME -1 USD

;; date: 2020-01-02
;; info: {"filename": "<testdata>/generic_statement.csv", "line": 4, "type": "text/csv"}
;; info: {"filename": "<testdata>/csv/generic_statement.csv", "line": 4, "type": "text/csv"}

; features: [
; {
Expand All @@ -94,7 +94,7 @@
Expenses:FIXME -500 USD

;; date: 2020-01-05
;; info: {"filename": "<testdata>/generic_statement.csv", "line": 6, "type": "text/csv"}
;; info: {"filename": "<testdata>/csv/generic_statement.csv", "line": 6, "type": "text/csv"}

; features: [
; {
Expand Down

0 comments on commit be14c45

Please sign in to comment.