Repository: mx-psi/fa-scraper (language: python)

Issue:
Add end to end test for `--lang es`



Discussion / hints:

Fix patch:
diff --git a/.github/workflows/endtoend.yaml b/.github/workflows/endtoend.yaml
index 16fa618..e0c7b73 100644
--- a/.github/workflows/endtoend.yaml
+++ b/.github/workflows/endtoend.yaml
@@ -11,6 +11,7 @@ jobs:
       matrix:
         python-version: [3.6.8, 3.10.0]
         os: [ubuntu-latest, macos-latest, windows-latest]
+        lang: ["es", "en"]
     runs-on: ${{ matrix.os }}
     steps:
       - uses: actions/checkout@v2
@@ -28,7 +29,11 @@ jobs:
       - name: Run fa-scrapper
         env:
           TEST_ACCOUNT_ID: ${{ secrets.TEST_ACCOUNT_ID }}
-        run: poetry run fa-scrapper ${TEST_ACCOUNT_ID} --csv output.csv
+          FA_LANG: ${{ matrix.lang }}
+        run: poetry run fa-scrapper ${TEST_ACCOUNT_ID} --lang ${FA_LANG} --csv output.csv
         shell: bash
       - name: Check output
-        run: csv-diff output.csv testdata/expected.csv
+        env:
+          FA_LANG: ${{ matrix.lang }}
+        run: csv-diff output.csv testdata/expected-${FA_LANG}.csv
+        shell: bash


Test patch:
diff --git a/testdata/expected.csv b/testdata/expected-en.csv
similarity index 100%
rename from testdata/expected.csv
rename to testdata/expected-en.csv
diff --git a/testdata/expected-es.csv b/testdata/expected-es.csv
new file mode 100644
index 0000000..579cb8f
--- /dev/null
+++ b/testdata/expected-es.csv
@@ -0,0 +1,3 @@
+Title,Year,Directors,WatchedDate,Rating,Rating10
+El rey león,1994,"Rob Minkoff, Roger Allers",2021-11-11,3.5,7
+Mad Max: Furia en la carretera,2015,George Miller,2021-11-11,5.0,10