web unit-tests #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "unit-tests"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +173,4 @@let response = client.get("/status").dispatch().await;assert_eq!(response.status(), Status::Ok);let state: DoorWebState = response.into_json().await.unwrap();assert_eq!(state.state.get("indoor"), Some(&DoorState::Closed));I suggest setting the door state before the action explicitly to "open", so it's obvious that the action did indeed change the door status.
@ -0,0 +193,4 @@let response = client.get("/status").dispatch().await;assert_eq!(response.status(), Status::Ok);let state: DoorWebState = response.into_json().await.unwrap();assert_eq!(state.state.get("indoor"), Some(&DoorState::Open));I suggest setting the door state before the action explicitly to "closed", so it's obvious that the action did indeed change the door status.
@ -0,0 +29,4 @@static TEST_KEYS: Lazy<TestKeys> = Lazy::new(generate_test_keys);/// Generate a fresh RSA-2048 key pair and return everything needed forRSA-512
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.