-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding fiat_ticker to manual.py transactions #134
base: main
Are you sure you want to change the base?
Conversation
Ah, yes, |
Thanks! So wouldn't that then reference I'll work on getting this PR up to date in next few days. Thanks for your help! |
Yep, |
Ok, managed to get the workflow working and figured out my mistake in the previous error pretty easily thereafter. Hold off on starting the workflows though, as I noticed I have some issues with the unit tests locally. |
Where are the local tests supposed to be run from? I get failures if running from the dali-rp2 root, but all pass if running from the rp2 root. Is this the intended workflow? |
They should run just fine in dali-rp2 root. Keep in mind that you have to activate the And that environment is only for dali-rp2. So, if you activated the environment in the rp2 root and then moved to dali-rp2 without deactivating the virtualenv, the tests won't run. You will have to deactivate then activate in the new directory. What errors are you getting specifically? |
Correct and I'll also add that RP2 is a dependency for DaLI, so when you install DaLI, RP2 gets automatically installed too. This means that there is no need to refer to the RP2 directory if you're doing DaLI development. |
I intended to add a reply but ended up mistakenly modifying @macanudo527's last comment instead (the one about |
Thanks for the info! I was using the venv from the rp2 root, so that sounds like the misunderstanding. I'm not on the same machine at the moment, but I recall it being something to do with a missing file used by one of the unit tests. The way the paths were specified prompted me try from the rp2 root, after which the unit tests all passed. After hearing your feedback, I think I can make sense of it when I get back to that machine. Sorry again, I'm sure my confusion arises from a lack of knowledge surrounding the workings of |
I think I did basically the same thing myself and it showed up like that because the ROOT is different, so that is probably what happened. |
Maybe I'm misunderstanding something, but is the README.dev.md incorrect when it specifies the
Should this not be
|
Ouch, copy/paste error: thanks for reporting! I just fixed it. |
Rerunning the local pytests I see the cause of at least one error, is the absence of this
I refactored the value being used to check column length and such from Even with this though, all users would be forced to add the
files, I think I need to:
As mentioned here. Will continue working on this later. Thanks for your patience! |
I just force pushed a larger overhaul of this, but its still a wip. I had some questions that I need to reference specific lines of code over in this discussion. |
I replied inline: let me know if you have more questions. |
…m transaction_items
As per discussion here
I'll add unit tests and such once I figure out the build flow:
Reading through the dev workflow it lists
bin/dali_us
inLOG_LEVEL=DEBUG bin/dali_us -s -o output/ config/test_config.ini
I don't see abin
directory in the root repo dir, so maybe this is referring to the.env/bin
dir? If so I'm not quite sure how my changes insrc
are "compiled" I know thats the wrong word here, but I've never done python packaging. In other words how do I push my changes insrc
to be used in the call todali_us
? Or should I just be invokingdali_entry()
from a python interpreter?