MCPcopy Create free account

hub / github.com/MikePia/structjour / functions

Functions1,304 in github.com/MikePia/structjour

Methodtest_disableAutoGen
(self)
test/test_createdirscontrol.py:73
Methodtest_doDups
(self)
test/test_dbdoctor.py:65
Methodtest_dummyName
Testing method dummyName in the graphstuff module. This is temporary- it will move.
test/test_graphstuff.py:63
Methodtest_enableAutoGen
(self)
test/test_createdirscontrol.py:68
Methodtest_exportExcel
Using a random trade generator, test exportExcel creates a file
test/test_exporttoexcel.py:149
Methodtest_findFilesInDir
(self)
test/test_findfiles.py:86
Methodtest_findFilesInMonth
(self)
test/test_findfiles.py:104
Methodtest_findFilesSinceMonth
(self)
test/test_findfiles.py:109
Methodtest_findTrade
Tests find a unique trade using findTrade with date, ticker, shares and account. The method is meant to be more exclusive than inclus
test/test_ibstatementdb.py:131
Methodtest_findTradeSummarySA
Test findTradeSummary, a helper method for addTradeSummaries and updateTradeSummaries. Note that one of those needs to have run and s
test/test_ibstatementdb.py:60
Methodtest_fixNumericTypes
(self)
test/test_ibstatement.py:77
Methodtest_formatTrade
Test the method TradeFormat.formatTrade. Specifically test that each of the elements in srf.tfcolumns has a corresponding elementcorr
test/test_tradestyle.py:117
Methodtest_getDefault
Test the method journal.xlimage.XLImage.getDefaultPILImage. Specifically test that it opens an image whether an image is specified or
test/test_xlimage.py:56
Methodtest_getDirectory
(self)
test/test_findfiles.py:68
Methodtest_getDuplicateTrades
(self)
test/test_dbdoctor.py:68
Methodtest_getEntries
(self)
test/test_layoutforms.py:226
Methodtest_getFirstWeekday
Test the function time.getFirstWeekday.
test/test_time.py:87
Methodtest_getImageName
Create a name for a pasted image. Asserts that all the right parts are in the expected places.
test/test_layoutforms.py:132
Methodtest_getImageNameX
(self)
test/test_layoutforms.py:147
Methodtest_getLastWorkDay
run some local code
test/test_utilities.py:160
Methodtest_getLinks
(self)
test/test_strategycrud.py:85
Methodtest_getMonthDir
(self)
test/test_findfiles.py:58
Methodtest_getNote
(self)
test/test_dailynotescrud.py:91
Methodtest_getTradesById
(self)
test/test_dbdoctor.py:71
Methodtest_getTradesBySumId
(self)
test/test_dbdoctor.py:74
Methodtest_getUncoveredDays
Tests several methods in the covered process from
test/test_ibstatementdb.py:279
Methodtest_getbc_intraday
This API will not retrieve todays data until 15 minutes after close. It may not retrieve all of yesterday till after close today
test/test_mybarchart.py:62
Methodtest_getid
Local proof of concept
test/test_strategycrud.py:70
Methodtest_getpreferred
(self)
test/test_strategycrud.py:232
Methodtest_getstrategies
Exercises addStratege and getStrategies. Get strategies gets a list of lists. TODO: It gets the format the the DBAPI got. Fi
test/test_strategycrud.py:171
Methodtest_getstrategy
Local proof of concept
test/test_strategycrud.py:163
Methodtest_ibstatement
Test basic usage loading an ib statement and getting a statement
test/test_ibstatementdb.py:172
Methodtest_initFromSettings
[ibRealPort, ibRealId, ibPaperPort, ibPaperId, ibRealCb, ibPaperCb, bcCb, avCb, fhCb, APIPref]
test/test_sapicontrol.py:83
Methodtest_insertPositions
This is not used by anything anymore. might delete insertPositions In making this test, I have discovered that stuctjour never uses t
test/test_ibstatementdb.py:163
Methodtest_insertTrade
Test the method insertTrade. Verifys that it inserts a trade and then, with an identical trade, it does not insert the trade. The col
test/test_ibstatementdb.py:229
Methodtest_makeDupDict
(self)
test/test_dbdoctor.py:77
Methodtest_makeupEntries
Test the test utility makeupEntries. Specifically test that candle index matches the integer candle index, test the price lies within
test/test_utilities.py:134
Methodtest_mergeStuff
Test the method tradestyle.TradeFormat.mergeStuff. Specificaly test that a merged cell group exists where it is should be after savin
test/test_tradestyle.py:86
Methodtest_ni
Test the function ni. The purpose of ni is to format the interval paramete correctly
test/test_myib.py:41
Methodtest_ni
Test the utility for mav
test/test_myalphavantage.py:130
Methodtest_openIbStatement
(self)
test/test_ibstatement.py:55
Methodtest_openIbStatement_notcsv
(self)
test/test_ibstatement.py:71
Methodtest_placeImagesAndSumStyles
At a loss for how to test image placement---the image is in a zip, the links are not in the worksheet. Openpyxl does not get the imag
test/test_exporttoexcel_mistakesummary.py:223
Methodtest_popHol
(self)
test/test_ibstatementdb.py:204
Methodtest_populateM
(self)
test/test_dailycontrol.py:79
Methodtest_populateM
(self)
system_tests/test_dailycontrol_system.py:151
Methodtest_populateStuff
(self)
test/test_dailycontrol.py:76
Methodtest_populateStuff
Test the headers for populateS (modelS), populateM (modelM) and the pandas modelT after runDialog
system_tests/test_dailycontrol_system.py:134
Methodtest_populateTradeSumForms
It is overwheleming to try to test that sumform was set correctly. This token tests the name was set correctly
test/test_layoutforms.py:157
Methodtest_populateXLDailyNote
Test the method populateXLDailyNote. Specifically test after setting a note, calling the method the workbook contains the note as exp
test/test_exporttoexcel.py:159
Methodtest_populateXLMistakeForm_correctTradePL
This method knows way too much, but how else to deal with excel and test formula results...
test/test_exporttoexcel_mistakesummary.py:176
Methodtest_populateXLMistakeForm_hyperlinks
Test the method populateXLMistakeForm has set up correct hyperlinks to the daily summary forms.
test/test_exporttoexcel_mistakesummary.py:154
Methodtest_populateXLMistakeForm_noteLinks
This method knows way too much, but how else to deal with excel and test formula results... Test that when data is included for the m
test/test_exporttoexcel_mistakesummary.py:202
Methodtest_postProcessingDB
Test add Overnight and/or Flipped to name if it is called for. Test fix db relation for tsid
test/test_definetrades.py:233
Methodtest_removeNote
(self)
test/test_dailynotescrud.py:100
Methodtest_removeimage
Exercise all the image get set and remove functions
test/test_strategycrud.py:141
Methodtest_removelink
Exercises all Link methods
test/test_strategycrud.py:95
Methodtest_removestrategy
Demonstrates Strategies relationship with Images, Description and Links and cascacde delete for each Not sure if the relationships wo
test/test_strategycrud.py:196
Methodtest_setChartData
(self)
test/test_layoutforms.py:167
Methodtest_setClean
(self)
test/test_layoutforms.py:233
Methodtest_setExplain
(self)
test/test_layoutforms.py:239
Methodtest_setMstkVals
(self)
test/test_layoutforms.py:251
Methodtest_setNote
(self)
test/test_dailynotescrud.py:80
Methodtest_setNotes
(self)
test/test_layoutforms.py:269
Methodtest_setStrategy
(self)
test/test_layoutforms.py:280
Methodtest_setTargVals
(self)
test/test_layoutforms.py:211
Methodtest_setTimeFrame
setTimeFrame will require usage to figure out the right settings. Its purpose is to frame the chart with enough time before and after
test/test_graphstuff.py:186
Methodtest_setdescription
(self)
test/test_strategycrud.py:270
Methodtest_setimage1
Tests getImage1 and setImage1
test/test_strategycrud.py:124
Methodtest_setimage2
(self)
test/test_strategycrud.py:134
Methodtest_setlink
(self)
test/test_strategycrud.py:77
Methodtest_setpreferred
(self)
test/test_strategycrud.py:243
Methodtest_shares
Test
test/test_unbalancedcontrol.py:65
Methodtest_sourceEntries
(self)
test/test_strategycrud.py:288
Methodtest_styleTopwithnothin
Test the method layoutsheet.LayoutSheet.styleTop. Test that it still works without table data. We still know too much about the metho
test/test_layoutsheet.py:215
Methodtest_unifyDateFormat
(self)
test/test_ibstatement.py:88
Methodtest_updateKey
(self)
test/test_utilities.py:173
MethodtheDateChanged
(self, val)
structjour/view/runtrade.py:89
MethodtheDateChanged
(self, val)
structjour/view/sumcontrol.py:1047
MethodtoggleDate
Toggles the inclusion of the date with the time in the 8 time entry widgets
structjour/view/sumcontrol.py:675
MethodtradeDbBrowse
Open a file dialog and set the results to the tradeDbEdit
structjour/view/filesetcontrol.py:179
MethodtradesByTimeClicked
(self, val)
structjour/view/statisticshubcontrol.py:368
Functionupdate
()
structjour/models/inspiremodel.py:206
MethodupdateAvgBalPlOC
(self, atrade, avg, bal, pl, oc, new_session=True)
structjour/statements/statementcrud.py:294
MethodupdateAvgBalPlOC
(cls, atrade, avg, bal, pl, oc, new_session=True)
structjour/models/trademodels.py:483
MethodupdateAvgOC
DB update ib_trades for average and OpenClose
structjour/statements/ibstatementdb.py:573
MethodupdateAvgPlOC
DB update ib_trades for average, PnL and OpenClose
structjour/statements/ibstatementdb.py:581
MethodupdateBal
(self, t, balance)
structjour/statements/statementcrud.py:306
MethodupdateBal
Uses an ongoing session. Update balance only if there is no current balance
structjour/models/trademodels.py:475
MethodupdateChart
Update or add new chart. The keywords are the field names plus commit. :commit: Defaults to True. If set to false, uses the current
structjour/models/trademodels.py:573
MethodupdateLayout
(self)
structjour/view/tagsedit.py:58
MethodupdateMstkVals
(cls, tsid, val, note)
structjour/models/trademodels.py:338
MethodupdateTSID
Needs a test. It does not get regularly called by running the program. It requires a db mistake and called by the dbdoctor
structjour/statements/statementcrud.py:177
MethodupdateTSID
(cls, tid, tsid)
structjour/models/trademodels.py:500
Functionupdatekey
()
structjour/models/api_keymodel.py:83
FunctionvalidateTimeString
Validates the HH:MM time strings :raise: ValueError on bad string.
structjour/stock/myiex.py:74
Methodview_inNumSets
Store the value for inNumSets. The Views are run after the query has been realized
structjour/view/charts/chartdatabase.py:213
MethodvolFormat
A helper callback for ax2.yaxis.set_major_formatter
structjour/stock/graphstuff.py:135
MethodwereDone
(self)
structjour/view/unbalancedcontrol.py:78
FunctionwhereDateTime
(before=None, after=None)
structjour/stats/sqlfilter.py:79
← previousnext →1,201–1,300 of 1,304, ranked by callers