forked from AI4Finance-Foundation/FinRL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding stubs for tests of major components.
- Loading branch information
1 parent
c11cf8b
commit e2bbae7
Showing
8 changed files
with
74 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
|
||
|
||
docker build -f docker/Dockerfile -t finrl docker/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker run -it --rm -v ${PWD}:/home -p 8887:8888 finrl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
|
||
docker run \ | ||
-it \ | ||
--rm \ | ||
-v ${PWD}:/home finrl python3 -m unittest discover |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import unittest | ||
from finrl.marketdata.yahoodownloader import YahooDownloader | ||
import pandas as pd | ||
|
||
|
||
|
||
|
||
|
||
class TestDownloader(unittest.TestCase): | ||
def setUp(cls): | ||
cls.ticker_list = ["AAPL", "GOOG"] | ||
|
||
def test_trivial(self): | ||
print(f"got hree!") | ||
self.assertTrue(True) | ||
|
||
|
||
def test_download(self): | ||
df = YahooDownloader(start_date = '2019-01-01', | ||
end_date = '2019-02-01', | ||
ticker_list = self.ticker_list).fetch_data() | ||
|
||
self.assertIsInstance(df, pd.DataFrame) | ||
|
||
|
||
|
||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |