File tree 3 files changed +18
-20
lines changed
libraries/botbuilder-ai/botbuilder/ai/qna/models 3 files changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -56,5 +56,7 @@ def __init__(
56
56
self .score = score
57
57
self .metadata = list (map (lambda meta : Metadata (** meta ), metadata ))
58
58
self .source = source
59
- self .context = QnAResponseContext (** context ) if context is not None else None
59
+ self .context = (
60
+ QnAResponseContext ().from_dict (context ) if context is not None else None
61
+ )
60
62
self .id = id # pylint: disable=invalid-name
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ variables:
9
9
python.36 : 3.6.10
10
10
python.37 : 3.7.6
11
11
python.38 : 3.8.2
12
-
12
+ # PythonCoverallsToken: get this from Azure
13
13
14
14
jobs :
15
15
# Build and publish container
80
80
- script : ' pylint --rcfile=.pylintrc libraries'
81
81
displayName : Pylint
82
82
83
- - script : ' COVERALLS_REPO_TOKEN=$(COVERALLS_TOKEN ) coveralls'
83
+ - script : ' COVERALLS_REPO_TOKEN=$(PythonCoverallsToken ) coveralls'
84
84
displayName : ' Push test results to coveralls https://coveralls.io/github/microsoft/botbuilder-python'
85
85
continueOnError : true
86
86
Original file line number Diff line number Diff line change 1
- trigger :
1
+ #
2
+ # Run functional test on bot deployed to a Docker Linux environment in Azure.
3
+ #
4
+ pool :
5
+ vmImage : ' Ubuntu-16.04'
6
+
7
+ trigger : # ci trigger
2
8
branches :
3
9
include :
4
- - daveta-python-functional
5
- exclude :
6
- - master
10
+ - master
11
+
12
+ pr : none # no pr trigger
7
13
8
14
variables :
9
15
# Container registry service connection established during pipeline creation
@@ -14,15 +20,11 @@ variables:
14
20
webAppName : ' e2epython'
15
21
containerRegistry : ' nightlye2etest.azurecr.io'
16
22
imageRepository : ' functionaltestpy'
17
-
18
-
19
-
23
+ # LinuxTestBotAppId: get this from azure
24
+ # LinuxTestBotAppSecret: get this from Azure
20
25
21
26
jobs :
22
- # Build and publish container
23
27
- job : Build
24
- pool :
25
- vmImage : ' Ubuntu-16.04'
26
28
displayName : Build and push bot image
27
29
continueOnError : false
28
30
steps :
35
37
containerRegistry : $(dockerRegistryServiceConnection)
36
38
tags : $(buildIdTag)
37
39
38
-
39
-
40
40
- job : Deploy
41
41
displayName : Provision bot container
42
- pool :
43
- vmImage : ' Ubuntu-16.04'
44
42
dependsOn :
45
43
- Build
46
44
steps :
54
52
DockerNamespace : $(containerRegistry)
55
53
DockerRepository : $(imageRepository)
56
54
DockerImageTag : $(buildIdTag)
57
- AppSettings : ' -MicrosoftAppId $(botAppId ) -MicrosoftAppPassword $(botAppPassword ) -FLASK_APP /functionaltestbot/app.py -FLASK_DEBUG 1'
55
+ AppSettings : ' -MicrosoftAppId $(LinuxTestBotAppId ) -MicrosoftAppPassword $(LinuxTestBotAppSecret ) -FLASK_APP /functionaltestbot/app.py -FLASK_DEBUG 1'
58
56
59
57
# StartupCommand: 'flask run --host=0.0.0.0 --port=3978'
60
-
61
-
<
2B28
/linearGradient>
You can’t perform that action at this time.
0 commit comments