Skip to content

Commit

Permalink
Merge pull request #126 from HanslettTheDev/new-makefile-commands
Browse files Browse the repository at this point in the history
Makefile command update for manual testing
  • Loading branch information
reingart committed Aug 23, 2023
2 parents 5ce278e + 3ff2800 commit 6764931
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,32 @@ test:
.venv/bin/py.test tests

clean:
rm -Rf .venv
rm -Rf .venv

.PHONY: install test
# Works with bash and linux
# This command first copies all the configuration settings from the conf folder
# to the main folder and next it downloads test key and digital certificate that
# that can be used for testing and lastly the python module is used to decompress
# the files
get-auth:
cp conf/*.ini .
curl -o reingart.zip https://www.sistemasagiles.com.ar/soft/pyafipws/reingart.zip
python -m zipfile -e reingart.zip .

access-ticket:
python -m pyafipws.wsaa

sample-invoice:
python -m pyafipws.wsfev1 --prueba

# Use "git clean -n" to see the files to be cleaned
# Use only when only the config files are untracked
# Finally use "git clean -f" to remove untracked files(in this case test files)
# This command will list all the files that are untracked. You can clean them verbosely
# using git clean -i. Else, if you are sure, you can se -f to remove all untracked files
# without a prompt
clean-test:
git clean -n
git clean -i

.PHONY: install test get-auth sample-invoice sign-cert

0 comments on commit 6764931

Please sign in to comment.