mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
17f36243bc
pokedex/main.py -
create_parser() -
Change the help message for the langs argument in the dump subparser
to show the actual default and state that the 'all' and 'none' codes
cannot be used alongside other codes.
command_dump() -
Check if 'all' or 'none' codes are passed alongside other codes. If
they are, error message is printed and program ends.
pokedex/db/load.py -
dump() -
Add check if langs code is 'all' or 'none'.
If langs wasn't passed to the parser or 'all' was passed (they are
the same since the default is 'all'), then everything will get
dumped to the csv files.
If 'none' was passed to the parser, then nothing new should be
dumped to the csv files.
pokexed/.travis.yml -
Re-added 'pokedex dump -l all' that was previously remove on
77e3d9df16
Resolves: #295
17 lines
285 B
YAML
17 lines
285 B
YAML
os: linux
|
|
language: python
|
|
python:
|
|
- "2.7"
|
|
- "3.4"
|
|
- "3.5"
|
|
- "3.6"
|
|
- "3.7"
|
|
- "pypy"
|
|
- "pypy3"
|
|
|
|
install: pip install -e .
|
|
before_script: pokedex setup -v
|
|
script:
|
|
- py.test
|
|
- pokedex dump -l all
|
|
- git --no-pager diff --exit-code pokedex/data/csv/
|