Skip to content

Commit

Permalink
empty test
Browse files Browse the repository at this point in the history
  • Loading branch information
arnold-pichler committed Nov 25, 2024
1 parent 7c9a350 commit 84ba9b5
Show file tree
Hide file tree
Showing 2 changed files with 195 additions and 2 deletions.
194 changes: 194 additions & 0 deletions fixtures/ohne-inhalt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,194 @@
{
"name": "Ohne Inhalt",
"input": {
"jahr": 2024,
"feldstuecksnummer": 1,
"schlagnummer": "",
"feldstuecksname": "Ohne Inhalt",
"flaechennutzungsart": "A",
"flaeche": 1.3898,
"flaeche_nitratrisikogebiet": 0,
"nitratrisikogebiet": false,
"flaeche_schwereboeden": 0,
"flaeche_grundwasserschutz": 0,
"wrrl": false,
"wrrl_duengeklasse": "-",
"teilnahme_grundwasserschutz_acker": false,
"gw_acker_gebietszuteilung": "Trockengebiet",
"ackerzahl": 30,
"phosphor_gehaltsklasse": "C",
"kalium_gehaltsklasse": "C",
"bodenart": "sL - sandiger Lehm",
"vorfrucht": "",
"nsaldo": 0,
"extent": [13.838549293577671, 48.335229360706535, 13.840665221214293, 48.33681915247462],
"parts": [
{
"type": "Polygon",
"coordinates": [
[
[13.839836418628689, 48.33681915247462],
[13.840037249028681, 48.33662547377966],
[13.84018912911415, 48.33650088605998],
[13.840665221214293, 48.33626463659624],
[13.840597830712793, 48.3361799431257],
[13.840343356132506, 48.33588596654016],
[13.839485384523867, 48.33525075736395],
[13.839457891881464, 48.335229360706535],
[13.839400559663769, 48.3352882014928],
[13.839100487530231, 48.33559756026699],
[13.839099816977978, 48.335598228907855],
[13.838572092354298, 48.336136927703905],
[13.838549293577671, 48.33615921549173],
[13.839832730591297, 48.33681714660008],
[13.839836418628689, 48.33681915247462]
]
]
}
],
"schlaginfo": {
"basic": {
"fnar_code": "A",
"inspire_id": "https://data.inspire.gv.at/0095/bbd8ee1b-76a1-451f-88ef-84e9c7a1faaf/elu.ExistingLandUseObject/114883348/MFA-2024",
"sl_flaeche_brutto_ha": 1.38989507,
"snar_bezeichnung": "KÖRNERMAIS",
"BL_KZ": "4",
"layer": "invekos_schlaege_polygon",
"loading": false,
"id": 584811,
"extent": [13.838549293577671, 48.335229360706535, 13.840665221214293, 48.33681915247462],
"parts": [
{
"type": "Polygon",
"coordinates": [
[
[13.839836418628689, 48.33681915247462],
[13.840037249028681, 48.33662547377966],
[13.84018912911415, 48.33650088605998],
[13.840665221214293, 48.33626463659624],
[13.840597830712793, 48.3361799431257],
[13.840343356132506, 48.33588596654016],
[13.839485384523867, 48.33525075736395],
[13.839457891881464, 48.335229360706535],
[13.839400559663769, 48.3352882014928],
[13.839100487530231, 48.33559756026699],
[13.839099816977978, 48.335598228907855],
[13.838572092354298, 48.336136927703905],
[13.838549293577671, 48.33615921549173],
[13.839832730591297, 48.33681714660008],
[13.839836418628689, 48.33681915247462]
]
]
}
]
},
"programs": {
"nitrataktionsprogramm": 0,
"bdfl_l16_grundwasserschutz_acker": 0,
"bdfl_l26_wasserrahmenrichtlinie_ertragslagen-el_hoch_3": 0,
"bdfl_l26_wasserrahmenrichtlinie_ertragslagen-el_hoch_2": 0,
"bdfl_l26_wasserrahmenrichtlinie_ertragslagen-el_hoch_1": 0,
"bdfl_l26_wasserrahmenrichtlinie_ertragslagen-el_mittel": 0,
"bdfl_l26_wasserrahmenrichtlinie_ertragslagen-el_mittel_10": 0,
"bdfl_l26_wasserrahmenrichtlinie_ertragslagen-el_niedrig": 0,
"schwere_boeden": 0
}
},
"cultures": [
{
"kultur": "",
"ertragslage": "",
"ernte": 0,
"ertragslageernte": "",
"feuchte": 14,
"protein": 12,
"nmin": 0,
"nminvorgabe": 0,
"duengung": []
},
{
"kultur": "",
"ertragslage": "",
"ernte": 0,
"ertragslageernte": "",
"feuchte": 14,
"protein": 12,
"nmin": 0,
"nminvorgabe": 0,
"duengung": []
}
]
},
"output": {
"duengeobergrenze": 0,
"duengeobergrenzered": 0,
"bilanz": [
{
"errorsOG": [],
"errorsBI": [],
"duengeobergrenze": 0,
"duengeobergrenzered": 0,
"nsaldo": 0,
"vfwert": 0,
"vfwertzf": 0,
"nminman": 0,
"redfaktor": 0,
"nmengehd": 0,
"nmengebw": 0,
"nmengesr": 0,
"nmengewd": 0,
"nabzug": 0,
"nanrechenbar": 0,
"nentzug": 0,
"nbilanz": 0,
"pmengehd": 0,
"pmengesr": 0,
"pmengewd": 0,
"pduengung": 0,
"pentzug": 0,
"pbilanz": 0,
"kmengehd": 0,
"kmengesr": 0,
"kmengewd": 0,
"kduengung": 0,
"kentzug": 0,
"kbilanz": 0
},
{
"errorsOG": [],
"errorsBI": [],
"duengeobergrenze": 0,
"duengeobergrenzered": 0,
"nsaldo": 0,
"vfwert": 0,
"vfwertzf": 0,
"nminman": 0,
"redfaktor": 0,
"nmengehd": 0,
"nmengebw": 0,
"nmengesr": 0,
"nmengewd": 0,
"nabzug": 0,
"nanrechenbar": 0,
"nentzug": 0,
"nbilanz": 0,
"pmengehd": 0,
"pmengesr": 0,
"pmengewd": 0,
"pduengung": 0,
"pentzug": 0,
"pbilanz": 0,
"kmengehd": 0,
"kmengesr": 0,
"kmengewd": 0,
"kduengung": 0,
"kentzug": 0,
"kbilanz": 0
}
],
"errors": [
"Keine Kulturen spezifiziert. Es werden keine Düngeobergrenzen oder Bilanzen berechnet."
],
"redmarked": []
}
}
3 changes: 1 addition & 2 deletions src/composables/useBalanceCalculator.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*import { expect, test } from 'vitest';
import { expect, test } from 'vitest';
import { updateBilanz } from './useBalanceCalculator.js';
import { entry } from './useDataEntries.js';
import { dirname, join } from 'path';
Expand All @@ -20,4 +20,3 @@ for (let i = 0; i < fixtures.length; ++i) {
expect(updateBilanz()).toStrictEqual(json.output);
});
}
*/

0 comments on commit 84ba9b5

Please sign in to comment.