Commit Graph

5 Commits

Author SHA1 Message Date
Chavithra
b62300f15b Update logs rotation (#1920)
* Logs : add rollover at start

* Black

* Typing

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-06-12 11:58:31 +02:00
Colin Delahunty
4d62b262a2 Add Logger Tests (#1707)
* Added openbb_terminal/logger tests

* Added tests for path_tracking

* Just in case lol

* Finished test_directories

* Added more tests

* Fixed flake8 error

* Fixed flake8 error

* Coverage for test_expired_files

* Added handling for no boto3

* Added test mock

* Added test mock

* Added fix

* Test fix

* Fix for windows

* Added int

* More tests

* Added fixes

* Fixed black issues

* Tests : update fixture examples

* Tests : core/log/generation

* Core : log/generation

* replaced conftest delete with temp_path

* Fixed mocks

* refactored get settings to use tmp_path

* reverted codespell

* Making random faillign test linux only

* Swapped to fixture

* Fixed conftest

* Logs collection : add docstring + clean lines

* Tests : fix windows specific issue

* Tests : skip unsound tests which changes logger state

* Black

* Linting

Co-authored-by: Chavithra PARANA <chavithra@gmail.com>
Co-authored-by: didierlopes.eth <dro.lopes@campus.fct.unl.pt>
2022-05-04 01:00:25 +02:00
Chavithra
19436938e9 Fixing Typing (#1747)
* Typing

* Typing

* Typing

* Black
2022-04-27 23:20:08 +02:00
Theodore Aptekarev
a5b414bf1a Default env for packaged apps (#1693)
* Remove defaults json in favor of a .env in a cross platform specfile

* Use ENV_FILE from obff across the app

* Add venv packaging support to the specfile

* Make silencing explicit

* Fix bug in integration tests report printout

Co-authored-by: piiq <piiq@tinag.ru>
2022-04-21 16:31:30 +03:00
didierlopes.eth
39d6955a04 Fix logging for users that don't rename parent folder to OpenBBTerminal (#1613)
* Fix terminal for issues when the repository keeps GamestonkTerminal name

* the logs will work regardless of parent folder they are in

* Logging : move log folder

* Fixing bug + Refactoring + Allow calling Terminal from outside the repo

* Black

* Remove comment

* SettingsController : fix

* Black

Co-authored-by: jmaslek <jmaslek11@gmail.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2022-04-04 12:29:50 +03:00