Skip to content

Commit 45b08eb

Browse files
authored
Compatibility with core#2567 (#7)
1 parent f341936 commit 45b08eb

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

buildout.cfg

+1-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
11
[buildout]
2-
extends = https://raw.githubusercontent.com/senaite/senaite.core/2.x/buildout.cfg
3-
2+
extends = https://raw.githubusercontent.com/senaite/senaite.core/2.x/buildout.base.cfg
43
package-name = senaite.lis2a
5-
6-
parts =
7-
instance
8-
test
9-
omelette
10-
write_code_headers
11-
12-
[sources]
13-
senaite.core = git https://github.com/senaite/senaite.core.git
14-
15-
[test]
16-
eggs =
17-
senaite.lis2a [test]

src/senaite/lis2a/tests/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def setup_baseline_data(portal):
4848
sample_type = _api.create(setup.bika_sampletypes, "SampleType", title="Water", Prefix="W")
4949
lab_contact = _api.create(setup.bika_labcontacts, "LabContact", Firstname="Lab", Lastname="Manager")
5050
department = _api.create(portal.setup.departments, "Department", title="Chemistry", Manager=lab_contact)
51-
category = _api.create(setup.bika_analysiscategories, "AnalysisCategory", title="Metals", Department=department)
51+
category = _api.create(portal.setup.analysiscategories, "AnalysisCategory", title="Metals", Department=department)
5252
Cu = _api.create(setup.bika_analysisservices, "AnalysisService", title="Copper", Keyword="Cu", Category=category.UID())
5353
Fe = _api.create(setup.bika_analysisservices, "AnalysisService", title="Iron", Keyword="Fe", Category=category.UID())
5454

0 commit comments

Comments
 (0)