diff --git a/README.md b/README.md index 132326f..8f9b052 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,12 @@ However, since we're putting a lot of faith in machines and automation, there ar - `no-console` will completely suppress console output. If you wanted that, for some reason. - `plaintext` will output to the console without pretty formatting. You'll want to use this option with SABnzbd. -#### Testing +If you'd like to run this automatically with some specific options, you can create a new file (e.g., `post-script.py`) and do: + + import subprocess + subprocess.call(["python3", "/path/to/fylm/fylm", "-s", "/Volumes/Downloads", "--plaintext"]) + +### Testing Tests are run using `pytest`. To install: @@ -109,16 +114,16 @@ To run tests: cd fylm/ python -m pytest -xq (--no-print-logs) -#### Contributing +### Contributing Contributions are welcome! Please send in a PR with a clear explanation of what you're adding and why, and where applicable, add tests (a new test class, even!) to validate. Please read our code of conduct before contributing. -#### Credits +### Credits Murcury icon by [Freepik](https://www.flaticon.com/authors/freepik) from [www.flaticon.com](http://www.flaticon.com/). Special thanks to [Pyfancy()](https://github.com/ilovecode1/Pyfancy-2) and [colors](https://github.com/jonathaneunice/colors/). -#### License +### License Fylm is licensed under both the [GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html) license and the [Hippocratic License](https://firstdonoharm.dev/version/2/1/license.html) license. Were a conflict or dispute to occur between these two licenses, the **Hippocratic License** license shall take precedence. Under its princples of Do No Harm, no portion of this software may be used to (or be a part of software that can be used to) cause, infer, encourage, incite, or otherwise lead to physical or verbal harm for any person or people, _especially_ marginalized and underrepresented people. diff --git a/fylm/tests/test_operations.py b/fylm/tests/test_operations.py index 1beeaac..fb34020 100644 --- a/fylm/tests/test_operations.py +++ b/fylm/tests/test_operations.py @@ -117,9 +117,8 @@ def test_get_new_films_multiple_dirs(self): assert(len(valid_films) == len(conftest.expected) + 2) # Assert that the list is sorted alphabetically - # assert([x.title for x in all_films] == [x.title for x in sorted(all_films, key=lambda x: x.title)]) - assert(all_films[4].title == 'Alita Battle Angel 2019') - assert(all_films[5].title == 'All the Money In the World') + assert(all(valid_films[i].title <= valid_films[i+1].title + for i in range(len(valid_films)-1))) def test_get_valid_files(self): diff --git a/requirements.txt b/requirements.txt index 42d2b12..2d8e829 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ future>=0.16.0 pyyaml>=4.2b4 ansicolors>=1.1.8 -attrdict>=2.0.0 +git+git://github.com/brandonscript/AttrDict requests-cache>=0.4.13 tmdbsimple>=2.1.0 PlexAPI