Giacomo Leidi
6f81522ad0
Release v0.1.0.
2021-09-28 11:40:04 +02:00
tinoilcotechino
394d84b0a5
settings.toml: Move secrets to dedicated file. ( #60 )
...
Configuration files are checked in this order:
1. CLI argument
2. `$MOBILIZION_RESHARE_SETTINGS_FILE` environment variable;
3. User configuration directory. On Linux that's `$XDG_CONFIG_HOME/mobilizon_reshare/<mobilizon-reshare-version>`;
4. System configuration directory. On Linux that's the first element in `$XDG_CONFIG_DIRS` + `/mobilizon_reshare/<mobilizon-reshare-version>`.
5. The default configuration distributed with the package.
The first available configuration file will be loaded. Secrets can be set either
via environment variables (such as `export MOBILIZON_RESHARE_PUBLISHER_TELEGRAM_TOKEN="my-telegram-token"` )
or by setting the `$SECRETS_FOR_DYNACONF` environment variable to a `secrets.(toml|yaml|ini|json)` file.
Co-authored-by: Giacomo Leidi <goodoldpaul@autistici.org>
2021-09-07 23:39:58 +02:00
tinoilcotechino
fa32af4b09
Add release.sh. ( #53 )
...
Co-authored-by: Giacomo Leidi <goodoldpaul@autistici.org>
2021-08-31 00:10:48 +02:00
Simone Robutti
2c8063cf4a
rename everything ( #50 )
...
* fixed visualization
* simplified tests
* split into files
* refactored test expected publications
* split update tests
* expanded specifications and tests
* added event_status window tests
* fixed 'all' command
* renamed everything
* fixed uppercase
2021-08-16 10:49:52 +02:00
Simone Robutti
880a34115f
extend cli ( #48 )
...
* fixed teardown
* Updated statuses management, tests (#41 )
* Updated statuses management, tests
* storage: query: Generalize event loading logic.
* reformat
* storage: query: Rename load_events to prefetch_event_relations.
Co-authored-by: Giacomo Leidi <goodoldpaul@autistici.org>
* fixed test_window_no_event
* added strategy tests
* removed unused code
* added config tests
* added more config tests
* refactored tests
* updated pytest
* added inspect_all
* temp
* added colors
* storage: events_with_status: Use `EventPublicationStatus`.
* storage: events_with_status: Enable closed ranges.
* added time window to CLI
Co-authored-by: SlyK182 <60148777+SlyK182@users.noreply.github.com>
Co-authored-by: Giacomo Leidi <goodoldpaul@autistici.org>
2021-08-04 18:53:58 +02:00
Simone Robutti
929e3aa78e
added format to markdown ( #43 )
...
* added format to markdown
* comments
* added markdown tests
2021-07-21 09:13:32 +02:00
Simone Robutti
8a27de8981
add tests ( #44 )
...
* fixed test_window_no_event
* added strategy tests
* removed unused code
* added config tests
* added more config tests
* refactored tests
* updated pytest
2021-07-18 18:23:30 +02:00
Simone Robutti
40919a994f
publication window ( #24 )
...
* added get events stub
* added event parsing
* removed datetime
* added config and tests
* fixed response format in test
* more tests
* added error handling for request
* improved dummy data
* added get_unpublished_events
* added test
* removed last_accessed
* mobilizon_url moved to fixture
* added config comments
* moved mobilizon group to config
* added method
* removed non-working test settings
* added publishing window logic and tests
* added inner/outer window check and mocking
* improved fixture
* fixed outer window
* fixed tests
2021-07-07 11:19:37 +02:00
Simone Robutti
891d523751
added CLI ( #27 )
2021-07-05 21:58:29 +02:00
tinoilcotechino
c129edd1e5
Add models ( #18 )
2021-05-31 01:11:50 +02:00
Simone Robutti
fcd5116d1c
download events ( #19 )
...
* added get events stub
* added event parsing
* removed datetime
* added config and tests
* fixed response format in test
* more tests
* added error handling for request
* improved dummy data
* added get_unpublished_events
* added test
* removed last_accessed
* mobilizon_url moved to fixture
* added config comments
* moved mobilizon group to config
2021-05-30 21:47:36 +02:00
tinoilcotechino
47f8c0aa17
Merge pull request #4 from Tech-Workers-Coalition-Italia/conf
...
Basic configuration.
2021-05-09 15:59:41 +02:00
Simone Robutti
4f194ab01c
added tests for strategy
2021-05-05 14:29:13 +02:00
Simone Robutti
3fe3c8efc6
added event selector (w/o tests)
2021-05-04 22:58:00 +02:00
Simone Robutti
821f2a6435
added jinja
2021-05-04 11:48:54 +02:00
Giacomo Leidi
218e228e6a
pyproject.toml: Update pytest to 5.3.
2021-05-03 19:51:19 +02:00
Simone Robutti
44c3f57365
added event class and format
2021-05-03 17:26:34 +02:00
Giacomo Leidi
ab69908a66
Init storage.
2021-05-02 18:44:08 +02:00
Simone Robutti
d78ab809a7
updated to python 3.9
2021-05-02 18:33:13 +02:00
Simone Robutti
d61ad2537d
first commit
2021-04-18 16:10:45 +02:00