Assertion error in pytest testing click command - pytest

I am trying to write a test for a click command I created and not understanding why I keep getting shown below assertion error. command works and folder is created. does anyone have an idea why? attached is the shot of click command and test for it on the right, click command, on the left - test for it

Related

Visual Studio Code can not run my nim code

when i click the vscode run button it pops up with a useless dialog box instead of running the code. (i attached a screen)
running with f6 yeilds this error "A system error occurred (EINVAL: invalid argument, mkdir 'c:\0pyrhton\nimtest\C:\Users\L.nimble\bin')"
i was expecting it to compile and run the .nim file and alert me to any errors in the vscode terminal.
You need to install the nim extension, you can look for an nim extension to your liking, otherwise https://marketplace.visualstudio.com/items?itemName=kosz78.nim is an extension that can run .nim files
i think you need to install the extension.
This is point 5 in the screenshot

Coderunner issues Mac

Please can anyone help me out code runner only shows the right output after running the python file.
For example
Here I used the option "run python file" in terminal and it worked
Then i ran it using coderunner extension and it works
But when i change the output and run it, it doesn't change
It only changes after i run it with python file. So I have to run it in terminal for the right output to show. code runner only mirrors the last output in terminal
This may seem obvious but in the third picture, as you can see from the white circle on the tab where the x to close usually resides indicates that you have not saved the file hence it will output results from the last time you ran it using the 'run python file'. The 'run python file' button saves before running automatically so it would be easy to accidently miss the cause as now its saved with the new input and your code runner will output the new result again making it seem as though its duplicating the 'run python file' button.

Old code runs every time I run the program

I just installed netbeans 12.0 again (I formatted my computer previously), I was customizing it but now every time I make a code I have to click on the Clean And Build Project button before clicking on the Run button, which is quite a lot. tired and takes time, when that should be automatic.
For example: I create a System.out.println ("Hello"); , I run the program and nothing appears on the console, I click the Clean And Build button and now it appear on the console; I change the message from "Hello" to "How are you?", I run the program and the "Hello" that I had written previously appears, that is, the application continues executing the previous code until I click Clean And Build. How can i solve this? Greetings.
Follow the below steps.
Note:Make sure your project haven't any errors.
Go to the project Explorer.
Right click on your project.
Select Clean (Now your code will clean).
After the clean build your project.
Then you can run your project.It should be ok

How can I refresh VS Code explorer from a extension?

I'm working on a VSCode extension that get some inputs from the developer and calls some yarn/npm commands inside an custom opened terminal in order to generate a folder and some files inside it.
Everything is running ok, except that we need to manually click on the refresh button in the Explorer in order to see the resulting folder.
I would like to call a method from the extension to do that for us once the execution was completed.
I did some research on the web and found this command:
terminal.sendText(command);
vscode.commands.executeCommand(
"workbench.files.action.refreshFilesExplorer"
);
But unfortunately, it is not working as I expected.
Am I missing something ?
You likely need to wait until after the command has completed before running refresh.
Does the command need to be run in the terminal? Can it be run using node's child_process instead, with you then executing vscode.commands.executeCommand("workbench.files.action.refreshFilesExplorer") after the process exits?

MonoDevelop - how do I look at stderr from a compile?

I'm using MonoDevelop and MonoTouch to build a project, but whenever there is a compile error in gcc, it simply says (in the Build Output tab), "Process exited with code 1, command: ..."
The problem is, I can't see what error gcc gave. It looks like stderr is either ignored or stuffed into a logfile somewhere.
I thought I might be able to discover the gcc/stderr output if I copy that command to a terminal window and run it, but it won't compile because some of the files on the command line were temp files that MonoTouch setup, and they were removed after MonoDevelop tried to build.
I've tried:
Setting Log Verbosity to Diagnostic
under
MonoDevelop->Preferences->Build
Running mdtool on the command line
with -v and that doesn't show me any
gcc output either
Adding
--stderr=/Users/myname/somefile.txt to the mtouch command line under
Project Options->iPhone Build->Extra
Arguments
.. none of those things work.
So.. how can I get the stderr output from gcc when mtouch runs it?
Add "-v -v -v" to the "Extra Arguments" for your build configuration in the iPhone Build settings.
In the build results window, mouse over the right end of or click on the step causing the error. A small icon will show up at the end of the line. It looks like an oval with horizontal lines going through it. If you click on that, you will see the commands that were run in that build step, as well as the output of those commands.